diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..bf6fed0272f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,4 @@ +{ + "name": "Node.js", + "image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm" +} diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 68cdfffda08..a2a0fa4be7b 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 00000000000..4dbff16643d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +version: 2 +updates: + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'daily' + time: '02:00' + target-branch: 'main' + - package-ecosystem: 'npm' + directory: '/' + target-branch: 'master' + schedule: + interval: 'daily' + time: '01:00' + - 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 0c2e86dd960..c96cf6f6efb 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@v4.2.2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index bba9800816b..8037d7caaff 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -8,9 +8,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v4.2.2 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: '20' # Pre-check to validate that versions match between package.json @@ -23,7 +23,7 @@ jobs: run: npm run docs - name: Deploy docs - uses: JamesIves/github-pages-deploy-action@4.1.4 + uses: JamesIves/github-pages-deploy-action@v4.7.3 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 407298f02da..06de1bfe18b 100644 --- a/.github/workflows/generate-javascript.yml +++ b/.github/workflows/generate-javascript.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Javascript - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Setup Node uses: actions/setup-node@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a3d5d484580..74eee0c6bfc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,9 @@ name: Release +permissions: + contents: write + actions: write + on: workflow_dispatch: inputs: @@ -29,7 +33,7 @@ jobs: environment: production steps: - name: Checkout Javascript - uses: actions/checkout@v4 + uses: actions/checkout@v4.2.2 - name: Setup Node uses: actions/setup-node@v4 with: @@ -54,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 4f25d25aca6..abf9756c6f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,9 @@ 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: @@ -14,7 +14,7 @@ jobs: node: ['23', '22', '20', '18'] name: Node ${{ matrix.node }} validation steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.2.2 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} @@ -25,3 +25,7 @@ jobs: - run: npm test - 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 d1ee22f96fc..cb79c59f755 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 4a8deec27ab..00000000000 --- a/.mocharc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "require": "tsx", - "extensions": ["ts"], - "spec": [ - "src/**/*_test.ts" - ], - "watch-files": [ - "src" - ] -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 5e14616fd27..00000000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ -Changelog for the Kubernetes typescript client. - -## 0.10.0 - * BREAKING CHANGE: API class names are CamelCase. This replaces the the "lower case version" naming. For example, `Core_v1Api` is now `CoreV1Api` and `Events_v1beta1Api` is now `EventsV1beta1Api`. - -## 0.8.1 - * Fix an issue with exposing bluebird types for `Promise` that broke `es6` users. diff --git a/FETCH_MIGRATION.md b/FETCH_MIGRATION.md deleted file mode 100644 index 5fe7464c525..00000000000 --- 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/OWNERS b/OWNERS index 1e20c18c967..554c6e09cfa 100644 --- a/OWNERS +++ b/OWNERS @@ -3,10 +3,12 @@ approvers: - brendandburns - mstruebing - davidgamero +- cjihrig reviewers: - brendandburns - mstruebing - davidgamero +- cjihrig emeritus_approvers: - mbohlool # 10/22/2020 - drubin # 11/23/2023 diff --git a/README.md b/README.md index 0f751f04588..c8bab32e0c3 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); @@ -66,6 +64,7 @@ k8sApi.createNamespace(namespace).then( ``` ## Create a cluster configuration programatically + ```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,31 +110,35 @@ 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. +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 compatability 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 | +| -------------- | -------------- | ---- | ---- | ---- | ---- | ---- | +| 0.19.x | - | ✓ | x | x | x | x | +| 0.20.x | - | + | ✓ | x | x | x | +| 0.21.x | - | + | + | ✓ | x | x | +| 0.22.x | - | + | + | + | ✓ | x | +| 1.0.x | - | + | + | + | + | ✓ | +| 1.1.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). @@ -171,11 +174,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 00000000000..73465fb2464 --- /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 59896fc3ee9..78e9a887556 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 cce452ab011..c6aec08c989 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 1265f37caf6..c78e0c56fb6 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 4eccb0e7e93..5e707b9cd15 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 b82a28650b2..b894599f761 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 b66b2a62c21..e01b05b4d97 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 57f1a92de80..348fe2a0cf1 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 ae14849071b..9bf49b03848 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 00000000000..a659b1e06b2 --- /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 00000000000..22c16aee819 --- /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 00000000000..5c30bc529f2 --- /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 00000000000..06c856ead0f --- /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 00000000000..d67f826cf4a --- /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 00000000000..25bd8f71800 --- /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 00000000000..559b6be8ce6 --- /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 00000000000..db5d4048e5b --- /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 b97b796587b..d3358c488db 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.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 2be6269b98e..a1e3c8182bd 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 5a5ab6a918b..4b74094db7b 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 1ff337357c6..4e3484ec3b3 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 b82a28650b2..b894599f761 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 ebc1c805df3..c5cd837285b 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 db372b66249..de37b1ea426 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 985330dc9d3..92b81711c1f 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 fa722a51461..b42ee8cdaab 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 94ef1445966..f3d5c03d8ee 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 9fc5f09bfac..a481ca2fab6 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 0e935ed77a9..00000000000 --- a/examples/typescript/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "../../tslint.json", - "rules": { - "no-console": false - } -} diff --git a/examples/yaml-example.js b/examples/yaml-example.js index 7dc95c3eb75..73e60ed1dea 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 4aabfe76146..636dd2bc9f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kubernetes/client-node", - "version": "1.0.0", - "lockfileVersion": 2, + "version": "1.1.2", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kubernetes/client-node", - "version": "1.0.0", + "version": "1.1.2", "license": "Apache-2.0", "dependencies": { "@types/js-yaml": "^4.0.1", @@ -16,90 +16,51 @@ "@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", + "jsonpath-plus": "^10.3.0", "node-fetch": "^2.6.9", "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", - "tslib": "^2.5.0", "ws": "^8.18.0" }, "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.3.0", "husky": "^9.0.6", - "jasmine": "^5.0.0", - "mocha": "^11.0.1", "mock-fs": "^5.2.0", "nock": "^13.2.9", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", - "source-map-support": "^0.5.9", "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.8.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" ], @@ -114,9 +75,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" ], @@ -131,9 +92,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" ], @@ -148,9 +109,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" ], @@ -165,9 +126,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" ], @@ -182,9 +143,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" ], @@ -199,9 +160,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" ], @@ -216,9 +177,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" ], @@ -233,9 +194,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" ], @@ -250,9 +211,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" ], @@ -267,9 +228,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" ], @@ -284,9 +245,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" ], @@ -301,9 +262,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" ], @@ -318,9 +279,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" ], @@ -335,9 +296,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" ], @@ -352,9 +313,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" ], @@ -369,9 +330,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" ], @@ -385,10 +346,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" ], @@ -403,9 +381,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" ], @@ -420,9 +398,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" ], @@ -437,9 +415,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" ], @@ -454,9 +432,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" ], @@ -471,9 +449,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" ], @@ -488,9 +466,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" ], @@ -504,110 +482,308 @@ "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.5.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.5.1.tgz", + "integrity": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==", "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.20.0", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", + "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", + "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.6", + "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.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/@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.2.1", + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", + "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/core": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.12.0.tgz", + "integrity": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.15" }, - "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/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": ">=12" + "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.24.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.24.0.tgz", + "integrity": "sha512-uIY/y3z0uvOGX8cp1C2fiC4+ZmBhp6yZWkojtHL1YEMnRt1Y63HB9TM17proGEmeG7HeUY+UP36F0aknKYTpYA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", + "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/plugin-kit": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", + "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/core": "^0.13.0", + "levn": "^0.4.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "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/plugin-kit/node_modules/@eslint/core": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", + "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", + "dev": true, + "license": "Apache-2.0", "dependencies": { - "ansi-regex": "^6.0.1" + "@types/json-schema": "^7.0.15" }, "engines": { - "node": ">=12" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@gerrit0/mini-shiki": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.2.2.tgz", + "integrity": "sha512-vaZNGhGLKMY14HbF53xxHNgFO9Wz+t5lTlGNpl2N9xFiKQ0I5oIe0vKjU9dh7Nb3Dw6lZ7wqUE0ri+zcdpnK+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^3.2.1", + "@shikijs/langs": "^3.2.1", + "@shikijs/themes": "^3.2.1", + "@shikijs/types": "^3.2.1", + "@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/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": { + "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": ">=12" } }, "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==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "license": "ISC", "dependencies": { "minipass": "^7.0.4" }, @@ -615,35 +791,48 @@ "node": ">=18.0.0" } }, + "node_modules/@isaacs/fs-minipass/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/@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, + "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" @@ -653,6 +842,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" }, @@ -664,6 +854,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" }, @@ -671,70 +862,117 @@ "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/@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, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, "engines": { - "node": ">=14" + "node": ">= 8" } }, - "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.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, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "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, + "license": "MIT", "dependencies": { - "@shikijs/types": "1.24.0", - "@shikijs/vscode-textmate": "^9.3.0" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "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/@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/@shikijs/engine-oniguruma": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.2.1.tgz", + "integrity": "sha512-wZZAkayEn6qu2+YjenEoFqj0OyQI64EWsNR6/71d1EkG4sxEOFooowKivsWPpaWNBu3sxAG+zPz5kzBL/SsreQ==", "dev": true, + "license": "MIT", "dependencies": { - "@shikijs/vscode-textmate": "^9.3.0", - "@types/hast": "^3.0.4" + "@shikijs/types": "3.2.1", + "@shikijs/vscode-textmate": "^10.0.2" } }, - "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/@shikijs/langs": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.2.1.tgz", + "integrity": "sha512-If0iDHYRSGbihiA8+7uRsgb1er1Yj11pwpX1c6HLYnizDsKAw5iaT3JXj5ZpaimXSWky/IhxTm7C6nkiYVym+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "3.2.1" + } }, - "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/@shikijs/themes": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.2.1.tgz", + "integrity": "sha512-k5DKJUT8IldBvAm8WcrDT5+7GA7se6lLksR+2E3SvyqGTyFMzU2F9Gb7rmD+t+Pga1MKrYFxDIeyWjMZWM6uBQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/deep-eql": "*" + "@shikijs/types": "3.2.1" } }, - "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/@shikijs/types": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.2.1.tgz", + "integrity": "sha512-/NTWAk4KE2M8uac0RhOsIhYQf4pdU0OywQuYDGIGAJ6Mjunxl2cGiuLkvu4HLCMn+OTTLRWkjZITp+aYJv60yA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/chai": "*" + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" } }, - "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/@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": "*" } @@ -743,40 +981,46 @@ "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": "22.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.0.tgz", + "integrity": "sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==", + "license": "MIT", "dependencies": { - "undici-types": "~6.20.0" + "undici-types": "~6.21.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.12", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-8nneRWKCg3rMtF69nLQJnOYUcbafYeFSjqkw3jCRLsqkWFlHaoQrr5mXmofFGOx3DKn7UfmBMyov8ySvLRVldA==", + "license": "MIT", "dependencies": { "@types/node": "*", "form-data": "^4.0.0" @@ -786,6 +1030,7 @@ "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==", + "license": "MIT", "dependencies": { "@types/node": "*" } @@ -794,119 +1039,313 @@ "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==", + "license": "MIT", "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 + "dev": true, + "license": "MIT" }, "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==", + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==", + "license": "MIT", "dependencies": { "@types/node": "*" } }, - "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": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.29.1.tgz", + "integrity": "sha512-ba0rr4Wfvg23vERs3eB+P3lfj2E+2g3lhWcCVukUuhtcdUx5lSIFZlGFEBHKr+3zizDa/TvZTptdNHVZWAkSBg==", "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.29.1", + "@typescript-eslint/type-utils": "8.29.1", + "@typescript-eslint/utils": "8.29.1", + "@typescript-eslint/visitor-keys": "8.29.1", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.1" + }, "engines": { - "node": ">=6" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, - "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==", + "node_modules/@typescript-eslint/parser": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.29.1.tgz", + "integrity": "sha512-zczrHVEqEaTwh12gWBIJWj8nx+ayDcCJs06yoNMY0kwjMWDM6+kppljY+BxWI06d2Ja+h4+WdufDcwMnnMEWmg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/scope-manager": "8.29.1", + "@typescript-eslint/types": "8.29.1", + "@typescript-eslint/typescript-estree": "8.29.1", + "@typescript-eslint/visitor-keys": "8.29.1", + "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": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, - "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/scope-manager": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.29.1.tgz", + "integrity": "sha512-2nggXGX5F3YrsGN08pw4XpMLO1Rgtnn4AzTegC2MDesv6q3QaTU5yU7IbS1tf1IwCR0Hv/1EFygLn9ms6LIpDA==", "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "@typescript-eslint/types": "8.29.1", + "@typescript-eslint/visitor-keys": "8.29.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/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/type-utils": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.29.1.tgz", + "integrity": "sha512-DkDUSDwZVCYN71xA4wzySqqcZsHKic53A4BLqmrWFFpOpNSoxX233lwGu/2135ymTCR04PoKiEEEvN1gFYg4Tw==", "dev": true, + "license": "MIT", "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "@typescript-eslint/typescript-estree": "8.29.1", + "@typescript-eslint/utils": "8.29.1", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.1" }, "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 <5.9.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/types": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.29.1.tgz", + "integrity": "sha512-VT7T1PuJF1hpYC3AGm2rCgJBjHL3nc+A/bhOp9sGMKfi5v0WufsX/sHCFBfNTx2F+zA6qBc/PD0/kLRLjdt8mQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.29.1.tgz", + "integrity": "sha512-l1enRoSaUkQxOQnbi0KPUtqeZkSiFlqrx9/3ns2rEDhGKfTa+88RmXqedC1zmVTOWrLc2e6DEJrTA51C9iLH5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.29.1", + "@typescript-eslint/visitor-keys": "8.29.1", + "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.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <5.9.0" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.29.1.tgz", + "integrity": "sha512-QAkFEbytSaB8wnmB+DflhUPz6CLbFWE2SnSCrRMEa+KnXIzDYbpsn++1HGvnfAsUY44doDXmvRkO5shlM/3UfA==", "dev": true, + "license": "MIT", "dependencies": { - "sprintf-js": "~1.0.2" + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.29.1", + "@typescript-eslint/types": "8.29.1", + "@typescript-eslint/typescript-estree": "8.29.1" + }, + "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 <5.9.0" } }, - "node_modules/assertion-error": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", - "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.29.1.tgz", + "integrity": "sha512-RGLh5CRaUEf02viP5c1Vh1cMGffQscyHe7HPAzGpfmfflFg1wUz2rYxd+OZqwpeypYvZ8UxSxuIpF++fmOzEcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.29.1", + "eslint-visitor-keys": "^4.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/acorn": { + "version": "8.14.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", + "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "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": ">= 14" + } + }, + "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, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "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": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "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": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "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==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "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==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true, - "engines": { - "node": ">=8" - } + "license": "MIT" }, "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==", + "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": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" + "balanced-match": "^1.0.0" } }, "node_modules/braces": { @@ -922,32 +1361,12 @@ "node": ">=8" } }, - "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/buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "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=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "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": { "@bcoe/v8-coverage": "^1.0.1", "@istanbuljs/schema": "^0.1.3", @@ -976,100 +1395,61 @@ } } }, - "node_modules/chai": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/chai/-/chai-5.1.2.tgz", - "integrity": "sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==", + "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, - "dependencies": { - "assertion-error": "^2.0.1", - "check-error": "^2.1.1", - "deep-eql": "^5.0.1", - "loupe": "^3.1.0", - "pathval": "^2.0.0" - }, + "license": "MIT", "engines": { - "node": ">=12" + "node": ">=18" } }, - "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, + "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": { - "check-error": "^2.0.0" + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" }, - "peerDependencies": { - "chai": ">= 2.1.2 < 6" + "engines": { + "node": ">= 0.4" } }, - "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/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, + "license": "MIT", "engines": { - "node": ">=4" + "node": ">=6" } }, - "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/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": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "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==", - "dev": true, - "engines": { - "node": ">= 16" - } - }, - "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "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" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">= 8.10.0" + "node": ">=10" }, - "optionalDependencies": { - "fsevents": "~2.3.2" + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, "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==", + "license": "BlueOak-1.0.0", "engines": { "node": ">=18" } @@ -1079,6 +1459,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.1", @@ -1088,24 +1469,94 @@ "node": ">=12" } }, + "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": ">=8" + } + }, + "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": ">=8" + } + }, + "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, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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": { + "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/color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "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": { - "color-name": "^1.1.1" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "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==" + "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": { "delayed-stream": "~1.0.0" }, @@ -1113,27 +1564,26 @@ "node": ">= 0.8" } }, - "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=" + "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 + "dev": true, + "license": "MIT" }, "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==", + "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", @@ -1143,27 +1593,13 @@ "node": ">= 8" } }, - "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==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "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==", - "dev": true, + "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.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -1174,53 +1610,56 @@ } } }, - "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/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, - "engines": { - "node": ">=6" - } + "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/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, + "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": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, "engines": { - "node": ">=0.3.1" + "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==" + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true, + "license": "MIT" }, "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==" + "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/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" }, @@ -1228,10 +1667,55 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "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": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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/esbuild": { - "version": "0.23.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.23.1.tgz", - "integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==", + "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", @@ -1242,172 +1726,418 @@ "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" + "@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/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "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" } }, "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=", + "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": { - "node": ">=0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "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/eslint": { + "version": "9.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.24.0.tgz", + "integrity": "sha512-eh/jxIEJyZrvbWRe4XuVclLPDYSYYYgLy5zXGGxD6j8zjSAxFEzI2fL/8xNq6O2yKqVt+eF2YhV+hxjV6UKXwQ==", "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.20.0", + "@eslint/config-helpers": "^0.2.0", + "@eslint/core": "^0.12.0", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "9.24.0", + "@eslint/plugin-kit": "^0.2.7", + "@humanfs/node": "^0.16.6", + "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.4.2", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "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.3.0", + "eslint-visitor-keys": "^4.2.0", + "espree": "^10.3.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": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "eslint": "bin/eslint.js" }, "engines": { - "node": ">=4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://eslint.org/donate" + }, + "peerDependencies": { + "jiti": "*" + }, + "peerDependenciesMeta": { + "jiti": { + "optional": true + } } }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "node_modules/eslint-plugin-erasable-syntax-only": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-erasable-syntax-only/-/eslint-plugin-erasable-syntax-only-0.3.1.tgz", + "integrity": "sha512-f4Eo1LEZJfUP7/2PwNdFUcIUJlYAoCoie9BSoThQ4y4eO8bW+Sq38qC4IskYTu4+FW887mPW0wYuI9HU0nQnlg==", "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" + "@typescript-eslint/utils": "^8.24.0", + "cached-factory": "^0.1.0" }, "engines": { - "node": ">=10" + "node": ">=20.18.0" + }, + "peerDependencies": { + "@typescript-eslint/parser": ">=8", + "eslint": ">=9", + "typescript": ">=5" + } + }, + "node_modules/eslint-scope": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", + "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" + "url": "https://opencollective.com/eslint" } }, - "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==", + "node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, - "license": "ISC" + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } }, - "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/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, "license": "MIT", "dependencies": { - "to-regex-range": "^5.0.1" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "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": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=8" + "node": "*" } }, - "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/espree": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", + "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" + "acorn": "^8.14.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.0" }, "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, - "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/esquery": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, - "bin": { - "flat": "cli.js" - } - }, - "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==", + "license": "BSD-3-Clause", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" + "estraverse": "^5.1.0" }, "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">=0.10" } }, - "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/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": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "estraverse": "^5.2.0" }, "engines": { - "node": ">= 6" + "node": ">=4.0" } }, - "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/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "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, - "hasInstallScript": true, - "license": "MIT", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "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/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/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, + "license": "MIT", + "dependencies": { + "@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": ">=8.6.0" + } + }, + "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": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "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" + }, + "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, + "license": "MIT" + }, + "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, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "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": { + "flat-cache": "^4.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "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, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "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": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "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": { + "flatted": "^3.2.9", + "keyv": "^4.5.4" + }, + "engines": { + "node": ">=16" + } + }, + "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": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", + "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "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" @@ -1416,32 +2146,66 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "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", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "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, + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, - "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==", - "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": { + "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/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": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, "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==", + "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": { @@ -1452,75 +2216,152 @@ } }, "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "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": { - "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" + "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": "*" + "bin": { + "glob": "dist/esm/bin.mjs" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, "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==", + "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": { - "is-glob": "^4.0.1" + "is-glob": "^4.0.3" }, "engines": { - "node": ">= 6" + "node": ">=10.13.0" } }, - "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/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": ">=4" + "node": ">=16 || 14 >=14.17" + } + }, + "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, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/he": { + "node_modules/gopd": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true, - "bin": { - "he": "bin/he" + "license": "MIT" + }, + "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, + "license": "MIT", + "engines": { + "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/ljharb" + } + }, + "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": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "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/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==", "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=10.17.0" - } + "license": "MIT" }, "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" }, @@ -1541,30 +2382,44 @@ "node": ">= 4" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "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": { - "once": "^1.3.0", - "wrappy": "1" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "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/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": ">=0.8.19" + } + }, + "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": { - "binary-extensions": "^2.0.0" + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" }, "engines": { - "node": ">=8" + "node": ">= 12" } }, "node_modules/is-extglob": { @@ -1572,6 +2427,7 @@ "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" } @@ -1580,7 +2436,9 @@ "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": { + "dev": true, + "license": "MIT", + "engines": { "node": ">=8" } }, @@ -1589,6 +2447,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -1606,49 +2465,18 @@ "node": ">=0.12.0" } }, - "node_modules/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, - "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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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==", - "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=" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" }, "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": "*" } @@ -1658,6 +2486,7 @@ "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": ">=8" } @@ -1667,6 +2496,7 @@ "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": { "istanbul-lib-coverage": "^3.0.0", "make-dir": "^4.0.0", @@ -1676,32 +2506,12 @@ "node": ">=10" } }, - "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==", - "dev": true, - "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==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", + "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": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -1711,15 +2521,14 @@ } }, "node_modules/jackspeak": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", - "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", + "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" }, - "engines": { - "node": ">=14" - }, "funding": { "url": "https://github.com/sponsors/isaacs" }, @@ -1727,98 +2536,20 @@ "@pkgjs/parseargs": "^0.11.0" } }, - "node_modules/jasmine": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-5.5.0.tgz", - "integrity": "sha512-JKlEVCVD5QBPYLsg/VE+IUtjyseDCrW8rMBu8la+9ysYashDgavMLM9Kotls1FhI6dCJLJ40dBCIfQjGLPZI1Q==", - "dev": true, - "dependencies": { - "glob": "^10.2.2", - "jasmine-core": "~5.5.0" - }, - "bin": { - "jasmine": "bin/jasmine.js" - } - }, - "node_modules/jasmine-core": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.5.0.tgz", - "integrity": "sha512-NHOvoPO6o9gVR6pwqEACTEpbgcH+JJ6QDypyymGbSUIFIFsMMbBJ/xsFNud8MSClfnWclXd7RQlAZBz7yVo5TQ==", - "dev": true - }, - "node_modules/jasmine/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/jasmine/node_modules/glob": { - "version": "10.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.3.tgz", - "integrity": "sha512-Kb4rfmBVE3eQTAimgmeqc2LwSnN0wIOkkUL6HmxEFxNJ4fHghYHVbFba/HcGcRjE6s9KoMNK3rSOwkL4PioZjg==", - "dev": true, - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", - "minimatch": "^9.0.0", - "minipass": "^5.0.0", - "path-scurry": "^1.7.0" - }, - "bin": { - "glob": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/jasmine/node_modules/minimatch": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", - "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/jasmine/node_modules/minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/jose": { - "version": "5.9.6", - "resolved": "https://registry.npmjs.org/jose/-/jose-5.9.6.tgz", - "integrity": "sha512-AMlnetc9+CV9asI19zHmrgS/WYsWUwCn2R7RzlbJWD7F9eWYUTGyBmU9o6PxngtLGOiDGPRu+Uc4fhKzbpteZQ==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.10.tgz", + "integrity": "sha512-skIAxZqcMkOrSwjJvplIPYrlXGpxTPnro2/QWTDCxAdWQrSTV5/KqspMWmi5WAx5+ULswASJiZ0a+1B/Lxt9cw==", + "license": "MIT", "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==", + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -1826,29 +2557,53 @@ "js-yaml": "bin/js-yaml.js" } }, - "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==", + "license": "MIT", "engines": { "node": ">= 10.16.0" } }, + "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, + "license": "MIT" + }, + "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" + }, + "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/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 + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC" }, "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==", + "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": { "@jsep-plugin/assignment": "^1.3.0", @@ -1863,11 +2618,36 @@ "node": ">=18.0.0" } }, + "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": { + "json-buffer": "3.0.1" + } + }, + "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": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, "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==", "dev": true, + "license": "MIT", "dependencies": { "uc.micro": "^2.0.0" } @@ -1877,6 +2657,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -1891,113 +2672,36 @@ "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, - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?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==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "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==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.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==", "dev": true, - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "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/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, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "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 + "license": "MIT" }, "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==", - "engines": { - "node": "14 || >=16.14" - } + "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/lunr": { "version": "2.3.9", "resolved": "https://registry.npmjs.org/lunr/-/lunr-2.3.9.tgz", "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", - "dev": true + "dev": true, + "license": "MIT" }, "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, + "license": "MIT", "dependencies": { "semver": "^7.5.3" }, @@ -2008,38 +2712,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "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, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "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, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "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": { "argparse": "^2.0.1", "entities": "^4.4.0", @@ -2052,127 +2730,73 @@ "markdown-it": "bin/markdown-it.mjs" } }, - "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/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": ">= 0.4" + } }, "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==", "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==", + "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, + "license": "MIT", "engines": { - "node": ">= 0.6" + "node": ">= 8" } }, - "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" - }, - "engines": { - "node": ">= 0.6" - } - }, - "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/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { - "brace-expansion": "^1.1.7" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "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, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" + "node": ">=8.6" } }, - "node_modules/minizlib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.1.tgz", - "integrity": "sha512-umcy022ILvb5/3Djuu8LWeqUa8D68JaBzlttKeMWen48SjabqS3iY5w/vzeMzMUNhLDifyhbOwKDSznB1vvrwg==", - "dependencies": { - "minipass": "^7.0.4", - "rimraf": "^5.0.5" - }, + "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": ">= 18" - } - }, - "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": ">= 0.6" } }, - "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==", + "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", "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" + "mime-db": "1.52.0" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": ">= 0.6" } }, - "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/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": { "brace-expansion": "^2.0.1" }, @@ -2183,205 +2807,57 @@ "url": "https://github.com/sponsors/isaacs" } }, - "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" - }, + "node_modules/minipass": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "license": "ISC", "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==", - "dev": true, - "dependencies": { - "minimist": "^1.2.5" - }, - "bin": { - "mkdirp": "bin/cmd.js" + "node": ">=8" } }, - "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==", - "dev": true, + "node_modules/minizlib": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz", + "integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==", + "license": "MIT", "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" + "minipass": "^7.1.2" }, "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_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==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "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": ">= 18" } }, - "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==", - "dev": true, + "node_modules/minizlib/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=16 || 14 >=14.17" } }, - "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==", - "dev": true, - "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" - }, + "node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "license": "MIT", "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "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==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" + "mkdirp": "dist/cjs/src/bin.js" }, "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/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, - "dependencies": { - "@isaacs/cliui": "^8.0.2" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@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/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, - "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" - }, - "engines": { - "node": ">=10" - } - }, - "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, - "engines": { - "node": ">=10" } }, "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==", + "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", "engines": { "node": ">=12.0.0" } @@ -2400,13 +2876,21 @@ "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" }, "node_modules/nock": { "version": "13.5.6", "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.6.tgz", "integrity": "sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==", "dev": true, + "license": "MIT", "dependencies": { "debug": "^4.1.0", "json-stringify-safe": "^5.0.1", @@ -2417,9 +2901,10 @@ } }, "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==", + "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" }, @@ -2435,77 +2920,68 @@ } } }, - "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_modules/oauth4webapi": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.4.0.tgz", + "integrity": "sha512-5lcbectYuzQHvh0Ni7Epvc13sMVq7BxWUlHEYHaNko64OA1hcats0Huq30vZjqCZULcVE/PZxAGGPansfRAWKQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" } }, - "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==", - "dev": true, + "node_modules/openid-client": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.4.1.tgz", + "integrity": "sha512-Bwta7kyGn0vyRGOatIAAvEOYCIiTwxBptrBpJgV9KdV0OGJ8OPe8wWY7bQbDqCJrDCclq6xbJMfK2Ilp5TugbA==", "license": "MIT", "dependencies": { - "path-key": "^3.0.0" + "jose": "^6.0.10", + "oauth4webapi": "^3.4.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=", + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", "dependencies": { - "wrappy": "1" + "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" } }, - "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/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": { - "mimic-fn": "^2.1.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "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": { "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, + "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -2516,62 +2992,52 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "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==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "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 + "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" + } }, "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, + "license": "MIT", "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==", + "dev": true, + "license": "MIT", "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==", + "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -2583,13 +3049,14 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", + "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": ">= 14.16" + "node": ">=16 || 14 >=14.17" } }, "node_modules/picocolors": { @@ -2604,6 +3071,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -2611,11 +3079,22 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "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" + } + }, "node_modules/prettier": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", - "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, @@ -2627,19 +3106,19 @@ } }, "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==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/pretty-quick/-/pretty-quick-4.1.1.tgz", + "integrity": "sha512-9Ud0l/CspNTmyIdYac9X7Inb3o8fuUsw+1zJFvCGn+at0t1UwUcUdo2RSZ41gcmfLv1fxgWQxWEfItR7CBwugg==", "dev": true, "license": "MIT", "dependencies": { - "execa": "^5.1.1", "find-up": "^5.0.0", - "ignore": "^5.3.0", + "ignore": "^7.0.3", "mri": "^1.2.0", - "picocolors": "^1.0.0", - "picomatch": "^3.0.1", - "tslib": "^2.6.2" + "picocolors": "^1.1.1", + "picomatch": "^4.0.2", + "tinyexec": "^0.3.2", + "tslib": "^2.8.1" }, "bin": { "pretty-quick": "lib/cli.mjs" @@ -2651,14 +3130,24 @@ "prettier": "^3.0.0" } }, + "node_modules/pretty-quick/node_modules/ignore": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.3.tgz", + "integrity": "sha512-bAH5jbK/F3T3Jls4I0SO1hmPR0dKU0a7+SY6n1yzRtG54FLO8d6w/nxLFX2Nb7dBu6cCWXPaAME6cYqFUMmuCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, "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==", + "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": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -2669,6 +3158,7 @@ "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -2677,6 +3167,8 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2686,47 +3178,50 @@ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "dev": true, + "license": "MIT", "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_modules/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, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" }, "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=", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, + "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==", + "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, - "dependencies": { - "path-parse": "^1.0.5" + "license": "MIT", + "engines": { + "node": ">=4" } }, "node_modules/resolve-pkg-maps": { @@ -2739,29 +3234,27 @@ "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, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "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" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } + "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==", + "license": "MIT" }, - "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==", + "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": [ { @@ -2776,30 +3269,31 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } }, "node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", "dev": true, + "license": "ISC", "bin": { - "semver": "bin/semver" - } - }, - "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==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "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==", + "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2811,6 +3305,8 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2819,6 +3315,8 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "license": "ISC", "engines": { "node": ">=14" }, @@ -2826,50 +3324,75 @@ "url": "https://github.com/sponsors/isaacs" } }, - "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, + "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.4", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.4.tgz", + "integrity": "sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==", + "license": "MIT", "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.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, + "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": ">=0.10.0" + "node": ">= 14" } }, "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 + "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/stream-buffers": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==", + "license": "Unlicense", "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==", + "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": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/string-width-cjs": { @@ -2877,6 +3400,8 @@ "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", @@ -2886,10 +3411,29 @@ "node": ">=8" } }, - "node_modules/strip-ansi": { + "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" + } + }, + "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==", + "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2897,11 +3441,29 @@ "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" + } + }, "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==", + "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2909,14 +3471,14 @@ "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==", + "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": ">=6" + "node": ">=8" } }, "node_modules/strip-json-comments": { @@ -2924,6 +3486,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -2932,25 +3495,14 @@ } }, "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==", + "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, + "license": "MIT", "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" } @@ -2959,6 +3511,7 @@ "version": "7.4.3", "resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz", "integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==", + "license": "ISC", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", "chownr": "^3.0.0", @@ -2971,26 +3524,13 @@ "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==", + "node_modules/tar/node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "license": "ISC", "engines": { - "node": ">=18" + "node": ">=16 || 14 >=14.17" } }, "node_modules/test-exclude": { @@ -2998,6 +3538,7 @@ "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", "dev": true, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^10.4.1", @@ -3007,111 +3548,61 @@ "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==", + "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" + }, + "node_modules/tmp": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.3.tgz", + "integrity": "sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==", + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/tmp-promise": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz", + "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==", + "license": "MIT", "dependencies": { - "balanced-match": "^1.0.0" + "tmp": "^0.2.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==", + "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": { - "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" + "is-number": "^7.0.0" }, "engines": { - "node": ">=8.17.0" + "node": ">=8.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/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" }, - "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==", + "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", - "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" + "node": ">=18.12" }, - "engines": { - "node": ">=14" + "peerDependencies": { + "typescript": ">=4.8.4" } }, "node_modules/ts-mockito": { @@ -3119,6 +3610,7 @@ "resolved": "https://registry.npmjs.org/ts-mockito/-/ts-mockito-2.6.1.tgz", "integrity": "sha512-qU9m/oEBQrKq5hwfbJ7MgmVN5Gu6lFnIGWvpxSjrqq6YYEVv+RwVFWySbZMBgazsWqv6ctAyVBpo9TmAxnOEKw==", "dev": true, + "license": "MIT", "dependencies": { "lodash": "^4.17.5" } @@ -3126,83 +3618,18 @@ "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==" - }, - "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==", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", "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 + "license": "0BSD" }, "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==", + "version": "4.19.3", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz", + "integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==", "dev": true, + "license": "MIT", "dependencies": { - "esbuild": "~0.23.0", + "esbuild": "~0.25.0", "get-tsconfig": "^4.7.5" }, "bin": { @@ -3215,81 +3642,109 @@ "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" + } + }, "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==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.2.tgz", + "integrity": "sha512-9Giuv+eppFKnJ0oi+vxqLM817b/IrIsEMYgy3jj6zdvppAfDqV3d6DXL2vXUg2TnlL62V48th25Zf/tcQKAJdg==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@gerrit0/mini-shiki": "^1.24.0", + "@gerrit0/mini-shiki": "^3.2.2", "lunr": "^2.3.9", "markdown-it": "^14.1.0", "minimatch": "^9.0.5", - "yaml": "^2.6.1" + "yaml": "^2.7.1" }, "bin": { "typedoc": "bin/typedoc" }, "engines": { - "node": ">= 18" + "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" + "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" } }, - "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==", + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" } }, - "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==", + "node_modules/typescript-eslint": { + "version": "8.29.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.29.1.tgz", + "integrity": "sha512-f8cDkvndhbQMPcysk6CUSGBWV+g1utqdn71P5YKwMumVMOG/5k7cHq0KyG4O52nB0oKS4aN2Tp5+wB4APJGC+w==", "dev": true, + "license": "MIT", "dependencies": { - "brace-expansion": "^2.0.1" + "@typescript-eslint/eslint-plugin": "8.29.1", + "@typescript-eslint/parser": "8.29.1", + "@typescript-eslint/utils": "8.29.1" }, "engines": { - "node": ">=16 || 14 >=14.17" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "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" + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, - "engines": { - "node": ">=14.17" + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.9.0" } }, "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" }, "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==" + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "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" + } }, "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==", + "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, + "license": "ISC", "dependencies": { "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", @@ -3300,43 +3755,60 @@ } }, "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" - } + "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": "12.0.1", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-12.0.1.tgz", - "integrity": "sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==", + "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": { - "tr46": "^4.1.1", - "webidl-conversions": "^7.0.0" + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" }, "engines": { - "node": ">=14" + "node": ">= 8" } }, - "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/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" + } }, "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==", + "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": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" @@ -3347,6 +3819,8 @@ "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": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3359,67 +3833,68 @@ "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" - }, + "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" - }, - "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==", + "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": { - "color-name": "~1.1.4" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "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==", + "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": { - "color-convert": "^2.0.1" + "ansi-regex": "^5.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==", + "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, - "dependencies": { - "color-name": "~1.1.4" - }, + "license": "MIT", "engines": { - "node": ">=7.0.0" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "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==", + "version": "8.18.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.1.tgz", + "integrity": "sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -3442,21 +3917,26 @@ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, + "license": "ISC", "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 + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } }, "node_modules/yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", + "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", "dev": true, + "license": "ISC", "bin": { "yaml": "bin.mjs" }, @@ -3469,6 +3949,7 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^8.0.1", "escalade": "^3.1.1", @@ -3487,47 +3968,54 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, + "license": "ISC", "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==", + "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, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=8" } }, - "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==", + "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, - "engines": { - "node": ">=10" + "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, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=8" } }, - "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==", + "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, - "engines": { - "node": ">=10" + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "engines": { + "node": ">=8" } }, "node_modules/yocto-queue": { @@ -3535,6 +4023,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3542,2405 +4031,5 @@ "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": "*" - } - }, - "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 - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "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 - }, - "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=" - }, - "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" - } - }, - "jasmine": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/jasmine/-/jasmine-5.5.0.tgz", - "integrity": "sha512-JKlEVCVD5QBPYLsg/VE+IUtjyseDCrW8rMBu8la+9ysYashDgavMLM9Kotls1FhI6dCJLJ40dBCIfQjGLPZI1Q==", - "dev": true, - "requires": { - "glob": "^10.2.2", - "jasmine-core": "~5.5.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" - } - }, - "glob": { - "version": "10.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.3.tgz", - "integrity": "sha512-Kb4rfmBVE3eQTAimgmeqc2LwSnN0wIOkkUL6HmxEFxNJ4fHghYHVbFba/HcGcRjE6s9KoMNK3rSOwkL4PioZjg==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", - "minimatch": "^9.0.0", - "minipass": "^5.0.0", - "path-scurry": "^1.7.0" - } - }, - "minimatch": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.0.tgz", - "integrity": "sha512-0jJj8AvgKqWN05mrwuqi8QYKx1WmYSUoKSxu5Qhs9prezTz10sxAHGNZe9J9cqIJzta8DWsleh2KaVaLl6Ru2w==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - }, - "minipass": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "dev": true - } - } - }, - "jasmine-core": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.5.0.tgz", - "integrity": "sha512-NHOvoPO6o9gVR6pwqEACTEpbgcH+JJ6QDypyymGbSUIFIFsMMbBJ/xsFNud8MSClfnWclXd7RQlAZBz7yVo5TQ==", - "dev": true - }, - "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==" - } - } - }, - "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": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "dev": true - }, - "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 - }, - "nock": { - "version": "13.5.6", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.6.tgz", - "integrity": "sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==", - "dev": true, - "requires": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "propagate": "^2.0.0" - } - }, - "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" - } - }, - "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" - } - }, - "oauth4webapi": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.1.4.tgz", - "integrity": "sha512-eVfN3nZNbok2s/ROifO0UAc5G8nRoLSbrcKJ09OqmucgnhXEfdIQOR4gq1eJH1rN3gV7rNw62bDEgftsgFtBEg==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.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" - } - }, - "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": { - "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" - } - } - } - }, - "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 - }, - "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=" - }, - "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 - }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - } - }, - "pathval": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", - "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", - "dev": true - }, - "picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "prettier": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.4.2.tgz", - "integrity": "sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==", - "dev": true - }, - "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==", - "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" - }, - "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 - } - } - }, - "propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "dev": true - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==" - }, - "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" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "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 - }, - "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, - "requires": { - "path-parse": "^1.0.5" - } - }, - "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 - }, - "rfc4648": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/rfc4648/-/rfc4648-1.5.4.tgz", - "integrity": "sha512-rRg/6Lb+IGfJqO05HZkN50UtY7K/JhxJag1kP23+zyMfrvoB0B7RWv06MbOzoc79RgCdNTiUaNsTT1AJZ7Z+cg==" - }, - "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" - } - }, - "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==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "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": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" - }, - "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 - } - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "stream-buffers": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-3.0.3.tgz", - "integrity": "sha512-pqMqwQCso0PBJt2PQmDO0cFj0lyqmiwOMiMSkVtRokl7e+ZTRYgDHKnuZNbqjiJXgsg4nuqtD/zxuo9KqTp0Yw==" - }, - "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": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "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" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "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 - }, - "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 - }, - "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, - "requires": { - "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 - } - } - }, - "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" - }, - "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==" - } - } - }, - "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": { - "@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" - } - } - } - }, - "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" - } - }, - "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" - } - }, - "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": { - "is-number": "^7.0.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" - } - }, - "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": { - "lodash": "^4.17.5" - } - }, - "tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==" - }, - "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 - } - } - }, - "tsutils": { - "version": "2.29.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", - "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", - "dev": true, - "requires": { - "tslib": "^1.8.1" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "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, - "requires": { - "esbuild": "~0.23.0", - "fsevents": "~2.3.3", - "get-tsconfig": "^4.7.5" - } - }, - "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, - "requires": { - "@gerrit0/mini-shiki": "^1.24.0", - "lunr": "^2.3.9", - "markdown-it": "^14.1.0", - "minimatch": "^9.0.5", - "yaml": "^2.6.1" - }, - "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": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.7.2.tgz", - "integrity": "sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==", - "dev": true - }, - "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 - }, - "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==" - }, - "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, - "requires": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.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==" - }, - "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" - } - }, - "workerpool": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", - "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", - "dev": true - }, - "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": { - "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" - } - } - } - }, - "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" - }, - "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" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "requires": {} - }, - "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 - }, - "yaml": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", - "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", - "dev": true - }, - "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": { - "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" - } - }, - "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 - }, - "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, - "requires": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "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 - } - } - }, - "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 - } } } diff --git a/package.json b/package.json index e92dc68c839..7140c5cf26d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kubernetes/client-node", - "version": "1.0.0", + "version": "1.1.2", "description": "NodeJS client for kubernetes", "type": "module", "repository": { @@ -8,34 +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": "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" @@ -63,39 +62,35 @@ "@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", + "jsonpath-plus": "^10.3.0", "node-fetch": "^2.6.9", "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", - "tslib": "^2.5.0", "ws": "^8.18.0" }, "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.3.0", "husky": "^9.0.6", - "jasmine": "^5.0.0", - "mocha": "^11.0.1", "mock-fs": "^5.2.0", "nock": "^13.2.9", "prettier": "^3.0.0", "pretty-quick": "^4.0.0", - "source-map-support": "^0.5.9", "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.8.2", + "typescript-eslint": "^8.26.0" }, "bugs": { "url": "https://github.com/kubernetes-client/javascript/issues" @@ -111,9 +106,5 @@ "trailingComma": "all", "singleQuote": true, "arrowParens": "always" - }, - "overrides": { - "colors": "1.4.0", - "whatwg-url@<12.0.1": "12.0.1" } } diff --git a/pre-check.sh b/pre-check.sh index 1dfa663c4a5..5ad811e98e2 100644 --- a/pre-check.sh +++ b/pre-check.sh @@ -2,8 +2,8 @@ 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 diff --git a/settings b/settings index 7213d91b61f..dd1f7f9ec29 100644 --- a/settings +++ b/settings @@ -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=fc00a663e1688c99d6e8917b6fb222cf83141d4c diff --git a/src/attach_test.ts b/src/attach_test.ts index 5d64d111b08..8bf37618982 100644 --- a/src/attach_test.ts +++ b/src/attach_test.ts @@ -1,9 +1,10 @@ -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'; -import { CallAwaiter, matchBuffer, ResizableWriteableStreamBuffer } from './test'; +import { CallAwaiter, matchBuffer, ResizableWriteableStreamBuffer } from './test/index.js'; import { Attach } from './attach.js'; import { KubeConfig } from './config.js'; import { TerminalSize } from './terminal-size-queue.js'; @@ -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_test.ts b/src/azure_auth_test.ts index 619e1f62785..979c31dadc0 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 8b580d02ed7..af5e5bc8520 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,23 @@ 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; 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, ) { + this.path = path; + this.watch = watch; + this.listFn = listFn; + this.labelSelector = labelSelector; + this.callbackCache[ADD] = []; this.callbackCache[UPDATE] = []; this.callbackCache[DELETE] = []; @@ -143,8 +152,14 @@ 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 || ''; diff --git a/src/cache_test.ts b/src/cache_test.ts index 777b296e925..315a4f55c59 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) => { @@ -255,19 +245,41 @@ describe('ListWatchCache', () => { } as V1ObjectMeta, } as V1Namespace); - watchHandler('DELETED', { - metadata: { - name: 'name2', - } as V1ObjectMeta, - } as V1Namespace); + watchHandler( + 'DELETED', + { + metadata: { + name: 'name2', + resourceVersion: 'blah', + } as V1ObjectMeta, + } as V1Namespace, + { + metadata: { + resourceVersion: '54321', + }, + }, + ); - 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' }); + deepStrictEqual(updateResult.metadata, { name: 'name3', resourceVersion: 'baz' }); + deepStrictEqual(deleteResult.metadata, { name: 'name2', resourceVersion: 'blah' }); + strictEqual(informer.latestResourceVersion(), '54321'); + + watchHandler( + 'BOOKMARK', + {}, + { + metadata: { + resourceVersion: '5454', + }, + }, + ); + strictEqual(informer.latestResourceVersion(), '5454'); }); it('should handle change events correctly', async () => { @@ -306,7 +318,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 +349,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 +376,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 +396,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 +447,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 +460,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 +519,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 +535,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 +585,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 +601,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 +611,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 +625,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 +634,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 +675,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 +687,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 +696,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 +709,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 +738,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 +807,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 +959,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 +993,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 +1054,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 +1167,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 () => { @@ -1105,7 +1220,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 () => { @@ -1174,8 +1289,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 () => { @@ -1243,8 +1358,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 +1439,7 @@ describe('ListWatchCache', () => { const value = await donePromise; - expect(value).to.deep.equal({ + deepStrictEqual(value, { metadata: { labels: { app: 'foo3', @@ -1383,7 +1498,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 +1523,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 +1576,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 +1585,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 f8237710dea..81bbd6f17b8 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'; @@ -33,6 +34,8 @@ import { import { OpenIDConnectAuth } from './oidc_auth.js'; import WebSocket from 'isomorphic-ws'; import child_process from 'node:child_process'; +import { SocksProxyAgent } from 'socks-proxy-agent'; +import { HttpProxyAgent, HttpProxyAgentOptions, HttpsProxyAgent, HttpsProxyAgentOptions } from 'hpagent'; const SERVICEACCOUNT_ROOT: string = '/var/run/secrets/kubernetes.io/serviceaccount'; const SERVICEACCOUNT_CA_PATH: string = SERVICEACCOUNT_ROOT + '/ca.crt'; @@ -44,14 +47,14 @@ 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 { @@ -63,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 */ @@ -166,11 +178,12 @@ export class KubeConfig implements SecurityAuthentication { headers, method: opts.method, timeout: opts.timeout, - }; + } as RequestInit; } public async applyToHTTPSOptions(opts: https.RequestOptions | WebSocket.ClientOptions): Promise { const user = this.getCurrentUser(); + const cluster = this.getCurrentCluster(); await this.applyOptions(opts); @@ -205,7 +218,7 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.secureProtocol = opts.secureProtocol; agentOptions.sessionIdContext = opts.sessionIdContext; - opts.agent = new https.Agent(agentOptions); + opts.agent = this.createAgent(cluster, agentOptions); } /** @@ -248,7 +261,7 @@ export class KubeConfig implements SecurityAuthentication { agentOptions.passphrase = httpsOptions.passphrase; agentOptions.rejectUnauthorized = httpsOptions.rejectUnauthorized; - context.setAgent(new https.Agent(agentOptions)); + context.setAgent(this.createAgent(cluster, agentOptions)); } /** @@ -391,7 +404,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); @@ -402,7 +419,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)) { @@ -410,7 +427,7 @@ export class KubeConfig implements SecurityAuthentication { return; } } - if (process.platform === 'win32') { + if (platform === 'win32') { try { const envKubeconfigPathResult = child_process.spawnSync('wsl.exe', [ 'bash', @@ -427,7 +444,7 @@ export class KubeConfig implements SecurityAuthentication { return; } } - } catch (err) { + } catch { // Falling back to default kubeconfig } try { @@ -440,7 +457,7 @@ export class KubeConfig implements SecurityAuthentication { } return; } - } catch (err) { + } catch { // Falling back to alternative auth } } @@ -509,6 +526,36 @@ export class KubeConfig implements SecurityAuthentication { return this.getContextObject(this.currentContext); } + private createAgent( + cluster: Cluster | null, + agentOptions: https.AgentOptions, + ): https.Agent | SocksProxyAgent | HttpProxyAgent | HttpsProxyAgent { + let agent: https.Agent | SocksProxyAgent | HttpProxyAgent | HttpsProxyAgent; + + if (cluster && cluster.proxyUrl) { + if (cluster.proxyUrl.startsWith('socks')) { + agent = new SocksProxyAgent(cluster.proxyUrl, agentOptions); + } else if (cluster.server.startsWith('https')) { + const httpsProxyAgentOptions: HttpsProxyAgentOptions = agentOptions as HttpsProxyAgentOptions; + httpsProxyAgentOptions.proxy = cluster.proxyUrl; + agent = new HttpsProxyAgent(httpsProxyAgentOptions); + } else if (cluster.server.startsWith('http')) { + const httpProxyAgentOptions: HttpProxyAgentOptions = agentOptions as HttpProxyAgentOptions; + httpProxyAgentOptions.proxy = cluster.proxyUrl; + agent = new HttpProxyAgent(httpProxyAgentOptions); + } 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); + } + return agent; + } + private applyHTTPSOptions(opts: https.RequestOptions | WebSocket.ClientOptions): void { const cluster = this.getCurrentCluster(); const user = this.getCurrentUser(); @@ -544,10 +591,16 @@ export class KubeConfig implements SecurityAuthentication { if (!user) { return; } - const authenticator = KubeConfig.authenticators.find((elt: Authenticator) => { + let authenticator = KubeConfig.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 = {}; } @@ -566,7 +619,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)) { @@ -599,14 +652,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; } @@ -625,24 +679,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 5af53260719..400906d54df 100644 --- a/src/config_test.ts +++ b/src/config_test.ts @@ -1,26 +1,39 @@ +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 { Authenticator } from './auth.js'; import { Headers } from 'node-fetch'; import { HttpMethod } from './index.js'; -import { assertRequestAgentsEqual, assertRequestOptionsEqual } from './test/match-buffer'; +import { assertRequestAgentsEqual, assertRequestOptionsEqual } from './test/match-buffer.js'; import { CoreV1Api, RequestContext } from './api.js'; import { bufferFromFileOrString, findHomeDir, findObject, KubeConfig, makeAbsolutePath } from './config.js'; import { ActionOnInvalid, Cluster, newClusters, newContexts, newUsers, User } from './config_types.js'; import { ExecAuth } from './exec_auth.js'; +import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent'; +import { SocksProxyAgent } from 'socks-proxy-agent'; const kcFileName = 'testdata/kubeconfig.yaml'; const kc2FileName = 'testdata/kubeconfig-2.yaml'; const kcDupeCluster = 'testdata/kubeconfig-dupe-cluster.yaml'; const kcDupeContext = 'testdata/kubeconfig-dupe-context.yaml'; const kcDupeUser = 'testdata/kubeconfig-dupe-user.yaml'; +const kcProxyUrl = 'testdata/kubeconfig-proxy-url.yaml'; const kcNoUserFileName = 'testdata/empty-user-kubeconfig.yaml'; const kcInvalidContextFileName = 'testdata/empty-context-kubeconfig.yaml'; @@ -29,71 +42,69 @@ const kcTlsServerNameFileName = 'testdata/tls-server-name-kubeconfig.yaml'; const __dirname = dirname(fileURLToPath(import.meta.url)); -use(chaiAsPromised); - -/* 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(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 { @@ -120,19 +131,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); }); }); @@ -152,10 +182,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); }); }); @@ -186,10 +216,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); }); }); @@ -201,24 +231,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); }); }); }); @@ -264,14 +294,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); }); }); @@ -281,8 +312,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'), @@ -302,6 +335,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(); @@ -358,70 +392,181 @@ describe('KubeConfig', () => { assertRequestOptionsEqual(opts, expectedOptions); }); + it('should apply socks proxy', async () => { + const kc = new KubeConfig(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextA'); + + const testServerName = 'https://example.com'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await kc.applySecurityAuthentication(rc); + const expectedCA = Buffer.from('CADAT@', 'utf-8'); + const expectedProxyHost = 'example'; + const expectedProxyPort = 1187; + + strictEqual(rc.getAgent() instanceof SocksProxyAgent, true); + const agent = rc.getAgent() as SocksProxyAgent; + 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(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextB'); + + const testServerName = 'https://example.com'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await kc.applySecurityAuthentication(rc); + const expectedCA = Buffer.from('CADAT@', 'utf-8'); + const expectedProxyHref = 'http://example:9443/'; + + strictEqual(rc.getAgent() instanceof HttpsProxyAgent, true); + const agent = rc.getAgent() as HttpsProxyAgent; + strictEqual(agent.options.ca?.toString(), expectedCA.toString()); + strictEqual((agent as any).proxy.href, expectedProxyHref); + }); + it('should apply http proxy', async () => { + const kc = new KubeConfig(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextC'); + + const testServerName = 'https://example.com'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + await kc.applySecurityAuthentication(rc); + const expectedCA = Buffer.from('CADAT@', 'utf-8'); + const expectedProxyHref = 'http://example:8080/'; + + strictEqual(rc.getAgent() instanceof HttpProxyAgent, true); + const agent = rc.getAgent() as HttpProxyAgent; + 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(); + kc.loadFromFile(kcProxyUrl); + kc.setCurrentContext('contextD'); + + const testServerName = 'https://example.com'; + const rc = new RequestContext(testServerName, HttpMethod.GET); + + 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); + }); }); 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'; @@ -430,7 +575,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'; @@ -443,8 +588,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'; @@ -463,8 +608,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'; @@ -489,14 +634,14 @@ 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); }); }); @@ -515,7 +660,7 @@ describe('KubeConfig', () => { mockfs.restore(); process.env.HOME = currentHome; - expect(home).to.equal(expectedHome); + strictEqual(home, expectedHome); }); }); @@ -552,7 +697,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', () => { @@ -577,7 +722,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; @@ -589,7 +734,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should load from HOMEDRIVE/HOMEPATH if present', () => { @@ -600,7 +745,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should favor HOMEDRIVE/HOMEPATH over USERPROFILE', () => { @@ -612,7 +757,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); it('should load from USERPROFILE if present', () => { @@ -623,7 +768,7 @@ describe('KubeConfig', () => { const home = findHomeDir(); mockfs.restore(); - expect(home).to.equal(dir); + strictEqual(home, dir); }); }); @@ -649,7 +794,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'; @@ -659,7 +804,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'; @@ -668,7 +813,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({}); @@ -676,62 +821,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' }, + ); }); }); @@ -745,7 +899,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(); @@ -765,12 +919,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(); @@ -780,7 +930,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(); @@ -794,10 +944,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(); @@ -817,14 +964,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 () => { @@ -844,10 +988,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 () => { @@ -867,7 +1008,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 () => { @@ -889,7 +1030,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', () => { @@ -907,9 +1048,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', () => { @@ -928,9 +1069,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 () => { @@ -958,10 +1097,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 () => { @@ -989,10 +1125,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 () => { @@ -1019,10 +1152,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 @@ -1048,10 +1178,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 @@ -1077,10 +1204,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 @@ -1113,10 +1237,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 @@ -1149,10 +1270,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 @@ -1180,10 +1298,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 @@ -1215,7 +1330,7 @@ describe('KubeConfig', () => { const execAuthenticator = (KubeConfig 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.', () => { @@ -1232,9 +1347,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!', + }); }); }); @@ -1246,10 +1361,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; @@ -1257,27 +1372,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', () => { @@ -1286,10 +1401,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'); }); }); @@ -1317,17 +1432,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); }); }); @@ -1385,25 +1500,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:443'); + strictEqual(cluster!.caFile, '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt'); + strictEqual(cluster!.server, 'https://kubernetes:443'); 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', () => { @@ -1429,11 +1536,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:80'); + strictEqual(cluster!.server, 'http://kubernetes:80'); }); it('should load from cluster with ipv6', () => { @@ -1459,11 +1562,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]:80'); + strictEqual(cluster!.server, 'http://[::1234:5678]:80'); }); it('should default to localhost', () => { @@ -1478,18 +1577,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'); }); }); @@ -1503,30 +1595,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 () => { @@ -1558,12 +1650,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 = { @@ -1573,10 +1678,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', () => { @@ -1586,11 +1688,103 @@ 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'); + }); }); }); diff --git a/src/config_types.ts b/src/config_types.ts index e35ae6f7cf1..eed9e1b0526 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; @@ -22,6 +24,7 @@ export interface Cluster { readonly server: string; readonly tlsServerName?: string; readonly skipTLSVerify: boolean; + readonly proxyUrl?: string; } export function newClusters(a: any, opts?: Partial): Cluster[] { @@ -43,6 +46,7 @@ export function exportCluster(cluster: Cluster): any { 'certificate-authority': cluster.caFile, 'insecure-skip-tls-verify': cluster.skipTLSVerify, 'tls-server-name': cluster.tlsServerName, + 'proxy-url': cluster.proxyUrl, }, }; } @@ -68,6 +72,7 @@ function clusterIterator( server: elt.cluster.server.replace(/\/$/, ''), skipTLSVerify: elt.cluster['insecure-skip-tls-verify'] === true, tlsServerName: elt.cluster['tls-server-name'], + proxyUrl: elt.cluster['proxy-url'], }; } catch (err) { switch (onInvalidEntry) { diff --git a/src/cp_test.ts b/src/cp_test.ts index eeee0342f0b..7cfcafa7d4b 100644 --- a/src/cp_test.ts +++ b/src/cp_test.ts @@ -1,8 +1,9 @@ +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'; -import { CallAwaiter } from './test'; +import { CallAwaiter } from './test/index.js'; import { KubeConfig } from './config.js'; import { Exec } from './exec.js'; import { Cp } from './cp.js'; @@ -35,7 +36,6 @@ 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(); }); }); diff --git a/src/exec_auth_test.ts b/src/exec_auth_test.ts index 9039f4a1c79..9be3e262d5b 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,21 @@ 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 return null on no exec info', async () => { @@ -233,10 +231,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 +329,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 +379,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 +437,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 +486,56 @@ 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' }); }); }); diff --git a/src/exec_test.ts b/src/exec_test.ts index a5e7ab1b1f4..405558b0c11 100644 --- a/src/exec_test.ts +++ b/src/exec_test.ts @@ -1,9 +1,10 @@ -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'; -import { CallAwaiter, matchBuffer, ResizableWriteableStreamBuffer } from './test'; +import { CallAwaiter, matchBuffer, ResizableWriteableStreamBuffer } from './test/index.js'; import { V1Status } from './api.js'; import { KubeConfig } from './config.js'; import { Exec } from './exec.js'; @@ -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_test.ts b/src/file_auth_test.ts index 6dadc045ec1..6843ed1d551 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_test.ts b/src/gcp_auth_test.ts index 3737530b289..5649e2309e5 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 d92fab4a976..8e148164410 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 : fc00a663e1688c99d6e8917b6fb222cf83141d4c +Actual Commit : fc00a663e1688c99d6e8917b6fb222cf83141d4c diff --git a/src/gen/.openapi-generator/VERSION b/src/gen/.openapi-generator/VERSION index 88411912639..de37f5c4cf5 100644 --- a/src/gen/.openapi-generator/VERSION +++ b/src/gen/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0-SNAPSHOT +7.12.0-SNAPSHOT diff --git a/src/gen/apis/AdmissionregistrationApi.ts b/src/gen/apis/AdmissionregistrationApi.ts index f677520bb6b..95c30bbda82 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 1496de4c906..3c43a4c42c3 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 786b924225f..7f8afdd2397 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 0b29157e60f..17da34a9e7a 100644 --- a/src/gen/apis/AdmissionregistrationV1beta1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1beta1Api.ts @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -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); } @@ -1152,7 +1152,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); } @@ -1196,7 +1196,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); } @@ -1240,7 +1240,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); } @@ -1284,7 +1284,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); } @@ -1365,7 +1365,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); } @@ -1446,7 +1446,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); } @@ -1527,7 +1527,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); } diff --git a/src/gen/apis/ApiextensionsApi.ts b/src/gen/apis/ApiextensionsApi.ts index 625bd938ba3..2b1f13e428a 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 fd3e4845219..00d79fec378 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 ae0349a8c76..8c696e51cbf 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 794b6c45f3e..bb862e8c9b7 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 c00bb56ac19..335d5642f26 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 c1219924cc3..ae962c7ae9e 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 3aa7a8a5fe0..41a7ccb644f 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 e71694915e6..5aff0c400e0 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 65ff30147ca..80a36297425 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 12ccc5e187d..25b4f20b42e 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 83e0eee2805..7245dc1c8fe 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 fd7468833bc..b6e3786c394 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 ecc4890fa14..1b51dbd1c9a 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 aefe453adea..07281a36841 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 e2d701b6dbe..eaee17cecac 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 4aa51dd39e2..ae730ded2d8 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 7b585d05a16..9d3f707d283 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 59f18b5bc67..a2439215690 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 3a2556f1728..5576ca707f4 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 207b5a2ece1..95a92a3bd52 100644 --- a/src/gen/apis/CertificatesV1alpha1Api.ts +++ b/src/gen/apis/CertificatesV1alpha1Api.ts @@ -86,7 +86,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); } @@ -176,7 +176,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,7 +314,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); } @@ -343,7 +343,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); } @@ -449,7 +449,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); } @@ -547,7 +547,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); } @@ -591,7 +591,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); } @@ -672,7 +672,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); } diff --git a/src/gen/apis/CoordinationApi.ts b/src/gen/apis/CoordinationApi.ts index 43dd1b27749..84baa958ee4 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 f624ec87fda..83532046b3e 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 cf7f80d5fff..c00bdf42eda 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/CoreApi.ts b/src/gen/apis/CoreApi.ts index c66c1bc398b..1ab741be949 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 5dcefdb73ed..c05a7b5198a 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 2a5d726b201..892e014f9bc 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 d68810b2bd3..84add9e0aea 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 d1f8e7eaf56..21b75e6bfde 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 cfa039d4b75..a3c7c1e4a75 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 c732f602082..7bf547df662 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 6d6e3207d56..7d66baf6457 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 01f625351d7..ff94feae6f2 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 6136c054eeb..5370289852a 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 0f4dd2f70b0..6fe2478fb39 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 3e05bc5f4cd..3ae75da9ed3 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 6f34b102f40..e9a62785611 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 78c77522327..55065166f37 100644 --- a/src/gen/apis/NetworkingV1Api.ts +++ b/src/gen/apis/NetworkingV1Api.ts @@ -90,7 +90,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 +171,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 +252,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); } @@ -390,7 +390,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); } @@ -536,7 +536,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); } @@ -682,7 +682,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); } @@ -772,7 +772,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); } @@ -870,7 +870,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); } @@ -968,7 +968,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); } @@ -997,7 +997,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); } @@ -1103,7 +1103,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); } @@ -1209,7 +1209,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); } @@ -1323,7 +1323,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); } @@ -1437,7 +1437,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); } @@ -1543,7 +1543,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); } @@ -1641,7 +1641,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); } @@ -1747,7 +1747,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); } @@ -1853,7 +1853,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); } @@ -1959,7 +1959,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); } @@ -2003,7 +2003,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); } @@ -2055,7 +2055,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); } @@ -2107,7 +2107,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); } @@ -2159,7 +2159,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 +2240,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 +2329,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 +2418,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 +2507,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); } diff --git a/src/gen/apis/NetworkingV1beta1Api.ts b/src/gen/apis/NetworkingV1beta1Api.ts index 4944328598e..1f0887cbf2a 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 aa40922246c..3fd916c9d1d 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 dfcec55190c..86d92664e08 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 ebcde32aa5e..0538fa731bf 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 edcf289054f..1e6b6da20ef 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 0541756d1f4..70c4c0601ce 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 34823b0311e..d33ce577bf3 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 ced41208df7..c27115083ba 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 030fc474043..59152c891dc 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/ResourceV1alpha3Api.ts b/src/gen/apis/ResourceV1alpha3Api.ts index 176daf989aa..3e14905cd2e 100644 --- a/src/gen/apis/ResourceV1alpha3Api.ts +++ b/src/gen/apis/ResourceV1alpha3Api.ts @@ -92,7 +92,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); } @@ -173,7 +173,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); } @@ -254,7 +254,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); } @@ -327,7 +327,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); } @@ -465,7 +465,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); } @@ -611,7 +611,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); } @@ -757,7 +757,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); } @@ -895,7 +895,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); } @@ -985,7 +985,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); } @@ -1083,7 +1083,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); } @@ -1181,7 +1181,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); } @@ -1271,7 +1271,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); } @@ -1300,7 +1300,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); } @@ -1406,7 +1406,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); } @@ -1520,7 +1520,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); } @@ -1634,7 +1634,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); } @@ -1740,7 +1740,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); } @@ -1846,7 +1846,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); } @@ -1952,7 +1952,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); } @@ -2050,7 +2050,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); } @@ -2156,7 +2156,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); } @@ -2262,7 +2262,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); } @@ -2368,7 +2368,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); } @@ -2466,7 +2466,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); } @@ -2510,7 +2510,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); } @@ -2562,7 +2562,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); } @@ -2614,7 +2614,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); } @@ -2666,7 +2666,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); } @@ -2710,7 +2710,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); } @@ -2791,7 +2791,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); } @@ -2880,7 +2880,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); } @@ -2969,7 +2969,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); } @@ -3058,7 +3058,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); } @@ -3139,7 +3139,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); } diff --git a/src/gen/apis/ResourceV1beta1Api.ts b/src/gen/apis/ResourceV1beta1Api.ts index fbf9e1d5142..bcf3841187b 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/SchedulingApi.ts b/src/gen/apis/SchedulingApi.ts index d94a74d1d81..dd0e617826a 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 10b9a851666..40c8b049794 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 98a5949f4e9..81382164aa2 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 db85f89c288..93bf24fd835 100644 --- a/src/gen/apis/StorageV1Api.ts +++ b/src/gen/apis/StorageV1Api.ts @@ -94,7 +94,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 +167,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 +248,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 +321,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 +394,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); } @@ -484,7 +484,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 +574,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 +712,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 +850,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 +996,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 +1134,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 +1272,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); } @@ -1370,7 +1370,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 +1460,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 +1550,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); } @@ -1579,7 +1579,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 +1685,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 +1791,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); } @@ -1897,7 +1897,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); } @@ -2011,7 +2011,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); } @@ -2117,7 +2117,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); } @@ -2223,7 +2223,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 +2321,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 +2419,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 +2525,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 +2623,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 +2721,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 +2819,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); } @@ -2863,7 +2863,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 +2907,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 +2959,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 +3003,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 +3047,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 +3091,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); } @@ -3172,7 +3172,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); } @@ -3253,7 +3253,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); } @@ -3342,7 +3342,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); } @@ -3423,7 +3423,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); } @@ -3504,7 +3504,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); } @@ -3585,7 +3585,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); } diff --git a/src/gen/apis/StorageV1alpha1Api.ts b/src/gen/apis/StorageV1alpha1Api.ts index d2b208e9814..56f6187dd04 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 ab4fa4b0e5a..b5483e5aa34 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 5add709bd87..f39442d65c0 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 3ca0a0ec7a4..0384e07c7b9 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 b45982863da..ad7681f9cfb 100644 --- a/src/gen/apis/VersionApi.ts +++ b/src/gen/apis/VersionApi.ts @@ -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 6625aa325f5..e5e69dc1509 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/configuration.ts b/src/gen/configuration.ts index ad2436fec9d..6380422be3b 100644 --- a/src/gen/configuration.ts +++ b/src/gen/configuration.ts @@ -4,13 +4,25 @@ import { IsomorphicFetchHttpLibrary as DefaultHttpLibrary } from "./http/isomorp import { BaseServerConfiguration, server1 } from "./servers.js"; import { configureAuthMethods, AuthMethods, AuthMethodsConfiguration } from "./auth/auth.js"; -export interface Configuration { - readonly baseServer: BaseServerConfiguration; - readonly httpApi: HttpLibrary; - readonly middleware: Middleware[]; - readonly authMethods: AuthMethods; +export interface Configuration { + readonly baseServer: BaseServerConfiguration; + readonly httpApi: HttpLibrary; + 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. @@ -79,4 +91,4 @@ export function createConfiguration(conf: ConfigurationParameters = {}): Configu ); } return configuration; -} \ No newline at end of file +} diff --git a/src/gen/index.ts b/src/gen/index.ts index 914164c9752..de19d76ded1 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 { 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 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'; diff --git a/src/gen/types/ObjectParamAPI.ts b/src/gen/types/ObjectParamAPI.ts index 6c4d76f17f1..a0208f0696c 100644 --- a/src/gen/types/ObjectParamAPI.ts +++ b/src/gen/types/ObjectParamAPI.ts @@ -1,5 +1,6 @@ import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http.js'; -import { Configuration} from '../configuration.js' +import { Configuration, ConfigurationOptions } from '../configuration.js' +import type { Middleware } from '../middleware.js'; import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference.js'; import { AdmissionregistrationV1WebhookClientConfig } from '../models/AdmissionregistrationV1WebhookClientConfig.js'; @@ -644,7 +645,7 @@ export class ObjectAdmissionregistrationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: AdmissionregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: AdmissionregistrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -652,7 +653,7 @@ export class ObjectAdmissionregistrationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: AdmissionregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: AdmissionregistrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -2363,7 +2364,7 @@ export class ObjectAdmissionregistrationV1Api { * create a MutatingWebhookConfiguration * @param param the request object */ - public createMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public createMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.createMutatingWebhookConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2371,7 +2372,7 @@ export class ObjectAdmissionregistrationV1Api { * create a MutatingWebhookConfiguration * @param param the request object */ - public createMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, options?: Configuration): Promise { + public createMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.createMutatingWebhookConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2379,7 +2380,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingAdmissionPolicy * @param param the request object */ - public createValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public createValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.createValidatingAdmissionPolicyWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2387,7 +2388,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingAdmissionPolicy * @param param the request object */ - public createValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public createValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.createValidatingAdmissionPolicy(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2395,7 +2396,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingAdmissionPolicyBinding * @param param the request object */ - public createValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public createValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2403,7 +2404,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingAdmissionPolicyBinding * @param param the request object */ - public createValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public createValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createValidatingAdmissionPolicyBinding(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2411,7 +2412,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingWebhookConfiguration * @param param the request object */ - public createValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public createValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.createValidatingWebhookConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2419,7 +2420,7 @@ export class ObjectAdmissionregistrationV1Api { * create a ValidatingWebhookConfiguration * @param param the request object */ - public createValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, options?: Configuration): Promise { + public createValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.createValidatingWebhookConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2427,7 +2428,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of MutatingWebhookConfiguration * @param param the request object */ - public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2435,7 +2436,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of MutatingWebhookConfiguration * @param param the request object */ - public deleteCollectionMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise { + public deleteCollectionMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionMutatingWebhookConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2443,7 +2444,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingAdmissionPolicy * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2451,7 +2452,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingAdmissionPolicy * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public deleteCollectionValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionValidatingAdmissionPolicy(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2459,7 +2460,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2467,7 +2468,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public deleteCollectionValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionValidatingAdmissionPolicyBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2475,7 +2476,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingWebhookConfiguration * @param param the request object */ - public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2483,7 +2484,7 @@ export class ObjectAdmissionregistrationV1Api { * delete collection of ValidatingWebhookConfiguration * @param param the request object */ - public deleteCollectionValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise { + public deleteCollectionValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionValidatingWebhookConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -2491,7 +2492,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a MutatingWebhookConfiguration * @param param the request object */ - public deleteMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public deleteMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteMutatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2499,7 +2500,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a MutatingWebhookConfiguration * @param param the request object */ - public deleteMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, options?: Configuration): Promise { + public deleteMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.deleteMutatingWebhookConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2507,7 +2508,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingAdmissionPolicy * @param param the request object */ - public deleteValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public deleteValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteValidatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2515,7 +2516,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingAdmissionPolicy * @param param the request object */ - public deleteValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public deleteValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.deleteValidatingAdmissionPolicy(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2523,7 +2524,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2531,7 +2532,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public deleteValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteValidatingAdmissionPolicyBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2539,7 +2540,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingWebhookConfiguration * @param param the request object */ - public deleteValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public deleteValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteValidatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2547,7 +2548,7 @@ export class ObjectAdmissionregistrationV1Api { * delete a ValidatingWebhookConfiguration * @param param the request object */ - public deleteValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, options?: Configuration): Promise { + public deleteValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.deleteValidatingWebhookConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -2555,7 +2556,7 @@ export class ObjectAdmissionregistrationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -2563,7 +2564,7 @@ export class ObjectAdmissionregistrationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AdmissionregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AdmissionregistrationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -2571,7 +2572,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind MutatingWebhookConfiguration * @param param the request object */ - public listMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + public listMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listMutatingWebhookConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2579,7 +2580,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind MutatingWebhookConfiguration * @param param the request object */ - public listMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise { + public listMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listMutatingWebhookConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2587,7 +2588,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingAdmissionPolicy * @param param the request object */ - public listValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public listValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listValidatingAdmissionPolicyWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2595,7 +2596,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingAdmissionPolicy * @param param the request object */ - public listValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public listValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listValidatingAdmissionPolicy(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2603,7 +2604,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingAdmissionPolicyBinding * @param param the request object */ - public listValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public listValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2611,7 +2612,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingAdmissionPolicyBinding * @param param the request object */ - public listValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public listValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listValidatingAdmissionPolicyBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2619,7 +2620,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingWebhookConfiguration * @param param the request object */ - public listValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + public listValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listValidatingWebhookConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2627,7 +2628,7 @@ export class ObjectAdmissionregistrationV1Api { * list or watch objects of kind ValidatingWebhookConfiguration * @param param the request object */ - public listValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise { + public listValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listValidatingWebhookConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -2635,7 +2636,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified MutatingWebhookConfiguration * @param param the request object */ - public patchMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public patchMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.patchMutatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2643,7 +2644,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified MutatingWebhookConfiguration * @param param the request object */ - public patchMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, options?: Configuration): Promise { + public patchMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.patchMutatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2651,7 +2652,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2659,7 +2660,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2667,7 +2668,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public patchValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2675,7 +2676,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public patchValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2683,7 +2684,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2691,7 +2692,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicyStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2699,7 +2700,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingWebhookConfiguration * @param param the request object */ - public patchValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public patchValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2707,7 +2708,7 @@ export class ObjectAdmissionregistrationV1Api { * partially update the specified ValidatingWebhookConfiguration * @param param the request object */ - public patchValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, options?: Configuration): Promise { + public patchValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -2715,7 +2716,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified MutatingWebhookConfiguration * @param param the request object */ - public readMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public readMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.readMutatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -2723,7 +2724,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified MutatingWebhookConfiguration * @param param the request object */ - public readMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, options?: Configuration): Promise { + public readMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.readMutatingWebhookConfiguration(param.name, param.pretty, options).toPromise(); } @@ -2731,7 +2732,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -2739,7 +2740,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicy(param.name, param.pretty, options).toPromise(); } @@ -2747,7 +2748,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public readValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -2755,7 +2756,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public readValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicyBinding(param.name, param.pretty, options).toPromise(); } @@ -2763,7 +2764,7 @@ export class ObjectAdmissionregistrationV1Api { * read status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -2771,7 +2772,7 @@ export class ObjectAdmissionregistrationV1Api { * read status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiReadValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicyStatus(param.name, param.pretty, options).toPromise(); } @@ -2779,7 +2780,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingWebhookConfiguration * @param param the request object */ - public readValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public readValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -2787,7 +2788,7 @@ export class ObjectAdmissionregistrationV1Api { * read the specified ValidatingWebhookConfiguration * @param param the request object */ - public readValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, options?: Configuration): Promise { + public readValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingWebhookConfiguration(param.name, param.pretty, options).toPromise(); } @@ -2795,7 +2796,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified MutatingWebhookConfiguration * @param param the request object */ - public replaceMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public replaceMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceMutatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2803,7 +2804,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified MutatingWebhookConfiguration * @param param the request object */ - public replaceMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, options?: Configuration): Promise { + public replaceMutatingWebhookConfiguration(param: AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.replaceMutatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2811,7 +2812,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2819,7 +2820,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicy(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2827,7 +2828,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public replaceValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2835,7 +2836,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public replaceValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2843,7 +2844,7 @@ export class ObjectAdmissionregistrationV1Api { * replace status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2851,7 +2852,7 @@ export class ObjectAdmissionregistrationV1Api { * replace status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicyStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2859,7 +2860,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingWebhookConfiguration * @param param the request object */ - public replaceValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + public replaceValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -2867,7 +2868,7 @@ export class ObjectAdmissionregistrationV1Api { * replace the specified ValidatingWebhookConfiguration * @param param the request object */ - public replaceValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, options?: Configuration): Promise { + public replaceValidatingWebhookConfiguration(param: AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3678,7 +3679,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * create a MutatingAdmissionPolicy * @param param the request object */ - public createMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public createMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.createMutatingAdmissionPolicyWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3686,7 +3687,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * create a MutatingAdmissionPolicy * @param param the request object */ - public createMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, options?: Configuration): Promise { + public createMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.createMutatingAdmissionPolicy(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3694,7 +3695,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * create a MutatingAdmissionPolicyBinding * @param param the request object */ - public createMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public createMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createMutatingAdmissionPolicyBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3702,7 +3703,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * create a MutatingAdmissionPolicyBinding * @param param the request object */ - public createMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public createMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiCreateMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createMutatingAdmissionPolicyBinding(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3710,7 +3711,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete collection of MutatingAdmissionPolicy * @param param the request object */ - public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -3718,7 +3719,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete collection of MutatingAdmissionPolicy * @param param the request object */ - public deleteCollectionMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public deleteCollectionMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionMutatingAdmissionPolicy(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -3726,7 +3727,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete collection of MutatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -3734,7 +3735,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete collection of MutatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public deleteCollectionMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiDeleteCollectionMutatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionMutatingAdmissionPolicyBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -3742,7 +3743,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete a MutatingAdmissionPolicy * @param param the request object */ - public deleteMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public deleteMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteMutatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -3750,7 +3751,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete a MutatingAdmissionPolicy * @param param the request object */ - public deleteMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, options?: Configuration): Promise { + public deleteMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.deleteMutatingAdmissionPolicy(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -3758,7 +3759,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete a MutatingAdmissionPolicyBinding * @param param the request object */ - public deleteMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public deleteMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteMutatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -3766,7 +3767,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * delete a MutatingAdmissionPolicyBinding * @param param the request object */ - public deleteMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public deleteMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiDeleteMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteMutatingAdmissionPolicyBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -3774,7 +3775,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -3782,7 +3783,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AdmissionregistrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -3790,7 +3791,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * list or watch objects of kind MutatingAdmissionPolicy * @param param the request object */ - public listMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public listMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listMutatingAdmissionPolicyWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -3798,7 +3799,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * list or watch objects of kind MutatingAdmissionPolicy * @param param the request object */ - public listMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public listMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listMutatingAdmissionPolicy(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -3806,7 +3807,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * list or watch objects of kind MutatingAdmissionPolicyBinding * @param param the request object */ - public listMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public listMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listMutatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -3814,7 +3815,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * list or watch objects of kind MutatingAdmissionPolicyBinding * @param param the request object */ - public listMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public listMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiListMutatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listMutatingAdmissionPolicyBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -3822,7 +3823,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * partially update the specified MutatingAdmissionPolicy * @param param the request object */ - public patchMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public patchMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.patchMutatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -3830,7 +3831,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * partially update the specified MutatingAdmissionPolicy * @param param the request object */ - public patchMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, options?: Configuration): Promise { + public patchMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.patchMutatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -3838,7 +3839,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * partially update the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public patchMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public patchMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.patchMutatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -3846,7 +3847,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * partially update the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public patchMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public patchMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiPatchMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.patchMutatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -3854,7 +3855,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * read the specified MutatingAdmissionPolicy * @param param the request object */ - public readMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public readMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.readMutatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -3862,7 +3863,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * read the specified MutatingAdmissionPolicy * @param param the request object */ - public readMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, options?: Configuration): Promise { + public readMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.readMutatingAdmissionPolicy(param.name, param.pretty, options).toPromise(); } @@ -3870,7 +3871,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * read the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public readMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public readMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.readMutatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -3878,7 +3879,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * read the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public readMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public readMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiReadMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.readMutatingAdmissionPolicyBinding(param.name, param.pretty, options).toPromise(); } @@ -3886,7 +3887,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * replace the specified MutatingAdmissionPolicy * @param param the request object */ - public replaceMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public replaceMutatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceMutatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3894,7 +3895,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * replace the specified MutatingAdmissionPolicy * @param param the request object */ - public replaceMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, options?: Configuration): Promise { + public replaceMutatingAdmissionPolicy(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.replaceMutatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3902,7 +3903,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * replace the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public replaceMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public replaceMutatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceMutatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -3910,7 +3911,7 @@ export class ObjectAdmissionregistrationV1alpha1Api { * replace the specified MutatingAdmissionPolicyBinding * @param param the request object */ - public replaceMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public replaceMutatingAdmissionPolicyBinding(param: AdmissionregistrationV1alpha1ApiReplaceMutatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.replaceMutatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -4833,7 +4834,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * create a ValidatingAdmissionPolicy * @param param the request object */ - public createValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public createValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.createValidatingAdmissionPolicyWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -4841,7 +4842,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * create a ValidatingAdmissionPolicy * @param param the request object */ - public createValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public createValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.createValidatingAdmissionPolicy(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -4849,7 +4850,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * create a ValidatingAdmissionPolicyBinding * @param param the request object */ - public createValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public createValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -4857,7 +4858,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * create a ValidatingAdmissionPolicyBinding * @param param the request object */ - public createValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public createValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiCreateValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createValidatingAdmissionPolicyBinding(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -4865,7 +4866,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete collection of ValidatingAdmissionPolicy * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -4873,7 +4874,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete collection of ValidatingAdmissionPolicy * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public deleteCollectionValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionValidatingAdmissionPolicy(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -4881,7 +4882,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete collection of ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -4889,7 +4890,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete collection of ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteCollectionValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public deleteCollectionValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiDeleteCollectionValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionValidatingAdmissionPolicyBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -4897,7 +4898,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete a ValidatingAdmissionPolicy * @param param the request object */ - public deleteValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public deleteValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteValidatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -4905,7 +4906,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete a ValidatingAdmissionPolicy * @param param the request object */ - public deleteValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public deleteValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.deleteValidatingAdmissionPolicy(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -4913,7 +4914,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete a ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -4921,7 +4922,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * delete a ValidatingAdmissionPolicyBinding * @param param the request object */ - public deleteValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public deleteValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiDeleteValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteValidatingAdmissionPolicyBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -4929,7 +4930,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -4937,7 +4938,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AdmissionregistrationV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AdmissionregistrationV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -4945,7 +4946,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * list or watch objects of kind ValidatingAdmissionPolicy * @param param the request object */ - public listValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise> { + public listValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listValidatingAdmissionPolicyWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -4953,7 +4954,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * list or watch objects of kind ValidatingAdmissionPolicy * @param param the request object */ - public listValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = {}, options?: Configuration): Promise { + public listValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listValidatingAdmissionPolicy(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -4961,7 +4962,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * list or watch objects of kind ValidatingAdmissionPolicyBinding * @param param the request object */ - public listValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise> { + public listValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -4969,7 +4970,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * list or watch objects of kind ValidatingAdmissionPolicyBinding * @param param the request object */ - public listValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: Configuration): Promise { + public listValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiListValidatingAdmissionPolicyBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listValidatingAdmissionPolicyBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -4977,7 +4978,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -4985,7 +4986,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -4993,7 +4994,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public patchValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5001,7 +5002,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public patchValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5009,7 +5010,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public patchValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5017,7 +5018,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * partially update status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public patchValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public patchValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiPatchValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchValidatingAdmissionPolicyStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5025,7 +5026,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -5033,7 +5034,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicy(param.name, param.pretty, options).toPromise(); } @@ -5041,7 +5042,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public readValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -5049,7 +5050,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public readValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicyBinding(param.name, param.pretty, options).toPromise(); } @@ -5057,7 +5058,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public readValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -5065,7 +5066,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * read status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public readValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public readValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiReadValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readValidatingAdmissionPolicyStatus(param.name, param.pretty, options).toPromise(); } @@ -5073,7 +5074,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5081,7 +5082,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicy(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5089,7 +5090,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public replaceValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5097,7 +5098,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace the specified ValidatingAdmissionPolicyBinding * @param param the request object */ - public replaceValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicyBinding(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyBindingRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicyBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5105,7 +5106,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise> { + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5113,7 +5114,7 @@ export class ObjectAdmissionregistrationV1beta1Api { * replace status of the specified ValidatingAdmissionPolicy * @param param the request object */ - public replaceValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: Configuration): Promise { + public replaceValidatingAdmissionPolicyStatus(param: AdmissionregistrationV1beta1ApiReplaceValidatingAdmissionPolicyStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceValidatingAdmissionPolicyStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5136,7 +5137,7 @@ export class ObjectApiextensionsApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: ApiextensionsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: ApiextensionsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -5144,7 +5145,7 @@ export class ObjectApiextensionsApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: ApiextensionsApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: ApiextensionsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -5673,7 +5674,7 @@ export class ObjectApiextensionsV1Api { * create a CustomResourceDefinition * @param param the request object */ - public createCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, options?: Configuration): Promise> { + public createCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise> { return this.api.createCustomResourceDefinitionWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5681,7 +5682,7 @@ export class ObjectApiextensionsV1Api { * create a CustomResourceDefinition * @param param the request object */ - public createCustomResourceDefinition(param: ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, options?: Configuration): Promise { + public createCustomResourceDefinition(param: ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise { return this.api.createCustomResourceDefinition(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5689,7 +5690,7 @@ export class ObjectApiextensionsV1Api { * delete collection of CustomResourceDefinition * @param param the request object */ - public deleteCollectionCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest = {}, options?: Configuration): Promise> { + public deleteCollectionCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -5697,7 +5698,7 @@ export class ObjectApiextensionsV1Api { * delete collection of CustomResourceDefinition * @param param the request object */ - public deleteCollectionCustomResourceDefinition(param: ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest = {}, options?: Configuration): Promise { + public deleteCollectionCustomResourceDefinition(param: ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionCustomResourceDefinition(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -5705,7 +5706,7 @@ export class ObjectApiextensionsV1Api { * delete a CustomResourceDefinition * @param param the request object */ - public deleteCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, options?: Configuration): Promise> { + public deleteCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCustomResourceDefinitionWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -5713,7 +5714,7 @@ export class ObjectApiextensionsV1Api { * delete a CustomResourceDefinition * @param param the request object */ - public deleteCustomResourceDefinition(param: ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, options?: Configuration): Promise { + public deleteCustomResourceDefinition(param: ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCustomResourceDefinition(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -5721,7 +5722,7 @@ export class ObjectApiextensionsV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: ApiextensionsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: ApiextensionsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -5729,7 +5730,7 @@ export class ObjectApiextensionsV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: ApiextensionsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: ApiextensionsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -5737,7 +5738,7 @@ export class ObjectApiextensionsV1Api { * list or watch objects of kind CustomResourceDefinition * @param param the request object */ - public listCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiListCustomResourceDefinitionRequest = {}, options?: Configuration): Promise> { + public listCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiListCustomResourceDefinitionRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCustomResourceDefinitionWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -5745,7 +5746,7 @@ export class ObjectApiextensionsV1Api { * list or watch objects of kind CustomResourceDefinition * @param param the request object */ - public listCustomResourceDefinition(param: ApiextensionsV1ApiListCustomResourceDefinitionRequest = {}, options?: Configuration): Promise { + public listCustomResourceDefinition(param: ApiextensionsV1ApiListCustomResourceDefinitionRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCustomResourceDefinition(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -5753,7 +5754,7 @@ export class ObjectApiextensionsV1Api { * partially update the specified CustomResourceDefinition * @param param the request object */ - public patchCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, options?: Configuration): Promise> { + public patchCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCustomResourceDefinitionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5761,7 +5762,7 @@ export class ObjectApiextensionsV1Api { * partially update the specified CustomResourceDefinition * @param param the request object */ - public patchCustomResourceDefinition(param: ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, options?: Configuration): Promise { + public patchCustomResourceDefinition(param: ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise { return this.api.patchCustomResourceDefinition(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5769,7 +5770,7 @@ export class ObjectApiextensionsV1Api { * partially update status of the specified CustomResourceDefinition * @param param the request object */ - public patchCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + public patchCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCustomResourceDefinitionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5777,7 +5778,7 @@ export class ObjectApiextensionsV1Api { * partially update status of the specified CustomResourceDefinition * @param param the request object */ - public patchCustomResourceDefinitionStatus(param: ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, options?: Configuration): Promise { + public patchCustomResourceDefinitionStatus(param: ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchCustomResourceDefinitionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -5785,7 +5786,7 @@ export class ObjectApiextensionsV1Api { * read the specified CustomResourceDefinition * @param param the request object */ - public readCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionRequest, options?: Configuration): Promise> { + public readCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise> { return this.api.readCustomResourceDefinitionWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -5793,7 +5794,7 @@ export class ObjectApiextensionsV1Api { * read the specified CustomResourceDefinition * @param param the request object */ - public readCustomResourceDefinition(param: ApiextensionsV1ApiReadCustomResourceDefinitionRequest, options?: Configuration): Promise { + public readCustomResourceDefinition(param: ApiextensionsV1ApiReadCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise { return this.api.readCustomResourceDefinition(param.name, param.pretty, options).toPromise(); } @@ -5801,7 +5802,7 @@ export class ObjectApiextensionsV1Api { * read status of the specified CustomResourceDefinition * @param param the request object */ - public readCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + public readCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readCustomResourceDefinitionStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -5809,7 +5810,7 @@ export class ObjectApiextensionsV1Api { * read status of the specified CustomResourceDefinition * @param param the request object */ - public readCustomResourceDefinitionStatus(param: ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, options?: Configuration): Promise { + public readCustomResourceDefinitionStatus(param: ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readCustomResourceDefinitionStatus(param.name, param.pretty, options).toPromise(); } @@ -5817,7 +5818,7 @@ export class ObjectApiextensionsV1Api { * replace the specified CustomResourceDefinition * @param param the request object */ - public replaceCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, options?: Configuration): Promise> { + public replaceCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCustomResourceDefinitionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5825,7 +5826,7 @@ export class ObjectApiextensionsV1Api { * replace the specified CustomResourceDefinition * @param param the request object */ - public replaceCustomResourceDefinition(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, options?: Configuration): Promise { + public replaceCustomResourceDefinition(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCustomResourceDefinition(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5833,7 +5834,7 @@ export class ObjectApiextensionsV1Api { * replace status of the specified CustomResourceDefinition * @param param the request object */ - public replaceCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + public replaceCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5841,7 +5842,7 @@ export class ObjectApiextensionsV1Api { * replace status of the specified CustomResourceDefinition * @param param the request object */ - public replaceCustomResourceDefinitionStatus(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, options?: Configuration): Promise { + public replaceCustomResourceDefinitionStatus(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCustomResourceDefinitionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -5864,7 +5865,7 @@ export class ObjectApiregistrationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: ApiregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: ApiregistrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -5872,7 +5873,7 @@ export class ObjectApiregistrationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: ApiregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: ApiregistrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -6401,7 +6402,7 @@ export class ObjectApiregistrationV1Api { * create an APIService * @param param the request object */ - public createAPIServiceWithHttpInfo(param: ApiregistrationV1ApiCreateAPIServiceRequest, options?: Configuration): Promise> { + public createAPIServiceWithHttpInfo(param: ApiregistrationV1ApiCreateAPIServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.createAPIServiceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6409,7 +6410,7 @@ export class ObjectApiregistrationV1Api { * create an APIService * @param param the request object */ - public createAPIService(param: ApiregistrationV1ApiCreateAPIServiceRequest, options?: Configuration): Promise { + public createAPIService(param: ApiregistrationV1ApiCreateAPIServiceRequest, options?: ConfigurationOptions): Promise { return this.api.createAPIService(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6417,7 +6418,7 @@ export class ObjectApiregistrationV1Api { * delete an APIService * @param param the request object */ - public deleteAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteAPIServiceRequest, options?: Configuration): Promise> { + public deleteAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteAPIServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteAPIServiceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -6425,7 +6426,7 @@ export class ObjectApiregistrationV1Api { * delete an APIService * @param param the request object */ - public deleteAPIService(param: ApiregistrationV1ApiDeleteAPIServiceRequest, options?: Configuration): Promise { + public deleteAPIService(param: ApiregistrationV1ApiDeleteAPIServiceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteAPIService(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -6433,7 +6434,7 @@ export class ObjectApiregistrationV1Api { * delete collection of APIService * @param param the request object */ - public deleteCollectionAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteCollectionAPIServiceRequest = {}, options?: Configuration): Promise> { + public deleteCollectionAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteCollectionAPIServiceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionAPIServiceWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -6441,7 +6442,7 @@ export class ObjectApiregistrationV1Api { * delete collection of APIService * @param param the request object */ - public deleteCollectionAPIService(param: ApiregistrationV1ApiDeleteCollectionAPIServiceRequest = {}, options?: Configuration): Promise { + public deleteCollectionAPIService(param: ApiregistrationV1ApiDeleteCollectionAPIServiceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionAPIService(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -6449,7 +6450,7 @@ export class ObjectApiregistrationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: ApiregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: ApiregistrationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -6457,7 +6458,7 @@ export class ObjectApiregistrationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: ApiregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: ApiregistrationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -6465,7 +6466,7 @@ export class ObjectApiregistrationV1Api { * list or watch objects of kind APIService * @param param the request object */ - public listAPIServiceWithHttpInfo(param: ApiregistrationV1ApiListAPIServiceRequest = {}, options?: Configuration): Promise> { + public listAPIServiceWithHttpInfo(param: ApiregistrationV1ApiListAPIServiceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listAPIServiceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -6473,7 +6474,7 @@ export class ObjectApiregistrationV1Api { * list or watch objects of kind APIService * @param param the request object */ - public listAPIService(param: ApiregistrationV1ApiListAPIServiceRequest = {}, options?: Configuration): Promise { + public listAPIService(param: ApiregistrationV1ApiListAPIServiceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listAPIService(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -6481,7 +6482,7 @@ export class ObjectApiregistrationV1Api { * partially update the specified APIService * @param param the request object */ - public patchAPIServiceWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceRequest, options?: Configuration): Promise> { + public patchAPIServiceWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchAPIServiceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -6489,7 +6490,7 @@ export class ObjectApiregistrationV1Api { * partially update the specified APIService * @param param the request object */ - public patchAPIService(param: ApiregistrationV1ApiPatchAPIServiceRequest, options?: Configuration): Promise { + public patchAPIService(param: ApiregistrationV1ApiPatchAPIServiceRequest, options?: ConfigurationOptions): Promise { return this.api.patchAPIService(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -6497,7 +6498,7 @@ export class ObjectApiregistrationV1Api { * partially update status of the specified APIService * @param param the request object */ - public patchAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceStatusRequest, options?: Configuration): Promise> { + public patchAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchAPIServiceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -6505,7 +6506,7 @@ export class ObjectApiregistrationV1Api { * partially update status of the specified APIService * @param param the request object */ - public patchAPIServiceStatus(param: ApiregistrationV1ApiPatchAPIServiceStatusRequest, options?: Configuration): Promise { + public patchAPIServiceStatus(param: ApiregistrationV1ApiPatchAPIServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchAPIServiceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -6513,7 +6514,7 @@ export class ObjectApiregistrationV1Api { * read the specified APIService * @param param the request object */ - public readAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceRequest, options?: Configuration): Promise> { + public readAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.readAPIServiceWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -6521,7 +6522,7 @@ export class ObjectApiregistrationV1Api { * read the specified APIService * @param param the request object */ - public readAPIService(param: ApiregistrationV1ApiReadAPIServiceRequest, options?: Configuration): Promise { + public readAPIService(param: ApiregistrationV1ApiReadAPIServiceRequest, options?: ConfigurationOptions): Promise { return this.api.readAPIService(param.name, param.pretty, options).toPromise(); } @@ -6529,7 +6530,7 @@ export class ObjectApiregistrationV1Api { * read status of the specified APIService * @param param the request object */ - public readAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceStatusRequest, options?: Configuration): Promise> { + public readAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readAPIServiceStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -6537,7 +6538,7 @@ export class ObjectApiregistrationV1Api { * read status of the specified APIService * @param param the request object */ - public readAPIServiceStatus(param: ApiregistrationV1ApiReadAPIServiceStatusRequest, options?: Configuration): Promise { + public readAPIServiceStatus(param: ApiregistrationV1ApiReadAPIServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readAPIServiceStatus(param.name, param.pretty, options).toPromise(); } @@ -6545,7 +6546,7 @@ export class ObjectApiregistrationV1Api { * replace the specified APIService * @param param the request object */ - public replaceAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceRequest, options?: Configuration): Promise> { + public replaceAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceAPIServiceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6553,7 +6554,7 @@ export class ObjectApiregistrationV1Api { * replace the specified APIService * @param param the request object */ - public replaceAPIService(param: ApiregistrationV1ApiReplaceAPIServiceRequest, options?: Configuration): Promise { + public replaceAPIService(param: ApiregistrationV1ApiReplaceAPIServiceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceAPIService(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6561,7 +6562,7 @@ export class ObjectApiregistrationV1Api { * replace status of the specified APIService * @param param the request object */ - public replaceAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceStatusRequest, options?: Configuration): Promise> { + public replaceAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceAPIServiceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6569,7 +6570,7 @@ export class ObjectApiregistrationV1Api { * replace status of the specified APIService * @param param the request object */ - public replaceAPIServiceStatus(param: ApiregistrationV1ApiReplaceAPIServiceStatusRequest, options?: Configuration): Promise { + public replaceAPIServiceStatus(param: ApiregistrationV1ApiReplaceAPIServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceAPIServiceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -6592,7 +6593,7 @@ export class ObjectApisApi { * get available API versions * @param param the request object */ - public getAPIVersionsWithHttpInfo(param: ApisApiGetAPIVersionsRequest = {}, options?: Configuration): Promise> { + public getAPIVersionsWithHttpInfo(param: ApisApiGetAPIVersionsRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIVersionsWithHttpInfo( options).toPromise(); } @@ -6600,7 +6601,7 @@ export class ObjectApisApi { * get available API versions * @param param the request object */ - public getAPIVersions(param: ApisApiGetAPIVersionsRequest = {}, options?: Configuration): Promise { + public getAPIVersions(param: ApisApiGetAPIVersionsRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIVersions( options).toPromise(); } @@ -6623,7 +6624,7 @@ export class ObjectAppsApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: AppsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: AppsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -6631,7 +6632,7 @@ export class ObjectAppsApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: AppsApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: AppsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -10200,7 +10201,7 @@ export class ObjectAppsV1Api { * create a ControllerRevision * @param param the request object */ - public createNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiCreateNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public createNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiCreateNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedControllerRevisionWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10208,7 +10209,7 @@ export class ObjectAppsV1Api { * create a ControllerRevision * @param param the request object */ - public createNamespacedControllerRevision(param: AppsV1ApiCreateNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public createNamespacedControllerRevision(param: AppsV1ApiCreateNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedControllerRevision(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10216,7 +10217,7 @@ export class ObjectAppsV1Api { * create a DaemonSet * @param param the request object */ - public createNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiCreateNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public createNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiCreateNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedDaemonSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10224,7 +10225,7 @@ export class ObjectAppsV1Api { * create a DaemonSet * @param param the request object */ - public createNamespacedDaemonSet(param: AppsV1ApiCreateNamespacedDaemonSetRequest, options?: Configuration): Promise { + public createNamespacedDaemonSet(param: AppsV1ApiCreateNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedDaemonSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10232,7 +10233,7 @@ export class ObjectAppsV1Api { * create a Deployment * @param param the request object */ - public createNamespacedDeploymentWithHttpInfo(param: AppsV1ApiCreateNamespacedDeploymentRequest, options?: Configuration): Promise> { + public createNamespacedDeploymentWithHttpInfo(param: AppsV1ApiCreateNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedDeploymentWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10240,7 +10241,7 @@ export class ObjectAppsV1Api { * create a Deployment * @param param the request object */ - public createNamespacedDeployment(param: AppsV1ApiCreateNamespacedDeploymentRequest, options?: Configuration): Promise { + public createNamespacedDeployment(param: AppsV1ApiCreateNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedDeployment(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10248,7 +10249,7 @@ export class ObjectAppsV1Api { * create a ReplicaSet * @param param the request object */ - public createNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiCreateNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public createNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiCreateNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedReplicaSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10256,7 +10257,7 @@ export class ObjectAppsV1Api { * create a ReplicaSet * @param param the request object */ - public createNamespacedReplicaSet(param: AppsV1ApiCreateNamespacedReplicaSetRequest, options?: Configuration): Promise { + public createNamespacedReplicaSet(param: AppsV1ApiCreateNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedReplicaSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10264,7 +10265,7 @@ export class ObjectAppsV1Api { * create a StatefulSet * @param param the request object */ - public createNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiCreateNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public createNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiCreateNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedStatefulSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10272,7 +10273,7 @@ export class ObjectAppsV1Api { * create a StatefulSet * @param param the request object */ - public createNamespacedStatefulSet(param: AppsV1ApiCreateNamespacedStatefulSetRequest, options?: Configuration): Promise { + public createNamespacedStatefulSet(param: AppsV1ApiCreateNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedStatefulSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -10280,7 +10281,7 @@ export class ObjectAppsV1Api { * delete collection of ControllerRevision * @param param the request object */ - public deleteCollectionNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedControllerRevisionWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10288,7 +10289,7 @@ export class ObjectAppsV1Api { * delete collection of ControllerRevision * @param param the request object */ - public deleteCollectionNamespacedControllerRevision(param: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedControllerRevision(param: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedControllerRevision(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10296,7 +10297,7 @@ export class ObjectAppsV1Api { * delete collection of DaemonSet * @param param the request object */ - public deleteCollectionNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedDaemonSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10304,7 +10305,7 @@ export class ObjectAppsV1Api { * delete collection of DaemonSet * @param param the request object */ - public deleteCollectionNamespacedDaemonSet(param: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedDaemonSet(param: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedDaemonSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10312,7 +10313,7 @@ export class ObjectAppsV1Api { * delete collection of Deployment * @param param the request object */ - public deleteCollectionNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedDeploymentWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10320,7 +10321,7 @@ export class ObjectAppsV1Api { * delete collection of Deployment * @param param the request object */ - public deleteCollectionNamespacedDeployment(param: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedDeployment(param: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedDeployment(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10328,7 +10329,7 @@ export class ObjectAppsV1Api { * delete collection of ReplicaSet * @param param the request object */ - public deleteCollectionNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedReplicaSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10336,7 +10337,7 @@ export class ObjectAppsV1Api { * delete collection of ReplicaSet * @param param the request object */ - public deleteCollectionNamespacedReplicaSet(param: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedReplicaSet(param: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedReplicaSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10344,7 +10345,7 @@ export class ObjectAppsV1Api { * delete collection of StatefulSet * @param param the request object */ - public deleteCollectionNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedStatefulSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10352,7 +10353,7 @@ export class ObjectAppsV1Api { * delete collection of StatefulSet * @param param the request object */ - public deleteCollectionNamespacedStatefulSet(param: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedStatefulSet(param: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedStatefulSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -10360,7 +10361,7 @@ export class ObjectAppsV1Api { * delete a ControllerRevision * @param param the request object */ - public deleteNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public deleteNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10368,7 +10369,7 @@ export class ObjectAppsV1Api { * delete a ControllerRevision * @param param the request object */ - public deleteNamespacedControllerRevision(param: AppsV1ApiDeleteNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public deleteNamespacedControllerRevision(param: AppsV1ApiDeleteNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedControllerRevision(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10376,7 +10377,7 @@ export class ObjectAppsV1Api { * delete a DaemonSet * @param param the request object */ - public deleteNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public deleteNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10384,7 +10385,7 @@ export class ObjectAppsV1Api { * delete a DaemonSet * @param param the request object */ - public deleteNamespacedDaemonSet(param: AppsV1ApiDeleteNamespacedDaemonSetRequest, options?: Configuration): Promise { + public deleteNamespacedDaemonSet(param: AppsV1ApiDeleteNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedDaemonSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10392,7 +10393,7 @@ export class ObjectAppsV1Api { * delete a Deployment * @param param the request object */ - public deleteNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteNamespacedDeploymentRequest, options?: Configuration): Promise> { + public deleteNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10400,7 +10401,7 @@ export class ObjectAppsV1Api { * delete a Deployment * @param param the request object */ - public deleteNamespacedDeployment(param: AppsV1ApiDeleteNamespacedDeploymentRequest, options?: Configuration): Promise { + public deleteNamespacedDeployment(param: AppsV1ApiDeleteNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedDeployment(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10408,7 +10409,7 @@ export class ObjectAppsV1Api { * delete a ReplicaSet * @param param the request object */ - public deleteNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public deleteNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10416,7 +10417,7 @@ export class ObjectAppsV1Api { * delete a ReplicaSet * @param param the request object */ - public deleteNamespacedReplicaSet(param: AppsV1ApiDeleteNamespacedReplicaSetRequest, options?: Configuration): Promise { + public deleteNamespacedReplicaSet(param: AppsV1ApiDeleteNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedReplicaSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10424,7 +10425,7 @@ export class ObjectAppsV1Api { * delete a StatefulSet * @param param the request object */ - public deleteNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public deleteNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10432,7 +10433,7 @@ export class ObjectAppsV1Api { * delete a StatefulSet * @param param the request object */ - public deleteNamespacedStatefulSet(param: AppsV1ApiDeleteNamespacedStatefulSetRequest, options?: Configuration): Promise { + public deleteNamespacedStatefulSet(param: AppsV1ApiDeleteNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedStatefulSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -10440,7 +10441,7 @@ export class ObjectAppsV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AppsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AppsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -10448,7 +10449,7 @@ export class ObjectAppsV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AppsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AppsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -10456,7 +10457,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ControllerRevision * @param param the request object */ - public listControllerRevisionForAllNamespacesWithHttpInfo(param: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listControllerRevisionForAllNamespacesWithHttpInfo(param: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listControllerRevisionForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10464,7 +10465,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ControllerRevision * @param param the request object */ - public listControllerRevisionForAllNamespaces(param: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listControllerRevisionForAllNamespaces(param: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listControllerRevisionForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10472,7 +10473,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind DaemonSet * @param param the request object */ - public listDaemonSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListDaemonSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listDaemonSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListDaemonSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listDaemonSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10480,7 +10481,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind DaemonSet * @param param the request object */ - public listDaemonSetForAllNamespaces(param: AppsV1ApiListDaemonSetForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listDaemonSetForAllNamespaces(param: AppsV1ApiListDaemonSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listDaemonSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10488,7 +10489,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind Deployment * @param param the request object */ - public listDeploymentForAllNamespacesWithHttpInfo(param: AppsV1ApiListDeploymentForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listDeploymentForAllNamespacesWithHttpInfo(param: AppsV1ApiListDeploymentForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listDeploymentForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10496,7 +10497,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind Deployment * @param param the request object */ - public listDeploymentForAllNamespaces(param: AppsV1ApiListDeploymentForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listDeploymentForAllNamespaces(param: AppsV1ApiListDeploymentForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listDeploymentForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10504,7 +10505,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ControllerRevision * @param param the request object */ - public listNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiListNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public listNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiListNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedControllerRevisionWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10512,7 +10513,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ControllerRevision * @param param the request object */ - public listNamespacedControllerRevision(param: AppsV1ApiListNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public listNamespacedControllerRevision(param: AppsV1ApiListNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedControllerRevision(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10520,7 +10521,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind DaemonSet * @param param the request object */ - public listNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiListNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public listNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiListNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedDaemonSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10528,7 +10529,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind DaemonSet * @param param the request object */ - public listNamespacedDaemonSet(param: AppsV1ApiListNamespacedDaemonSetRequest, options?: Configuration): Promise { + public listNamespacedDaemonSet(param: AppsV1ApiListNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedDaemonSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10536,7 +10537,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind Deployment * @param param the request object */ - public listNamespacedDeploymentWithHttpInfo(param: AppsV1ApiListNamespacedDeploymentRequest, options?: Configuration): Promise> { + public listNamespacedDeploymentWithHttpInfo(param: AppsV1ApiListNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedDeploymentWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10544,7 +10545,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind Deployment * @param param the request object */ - public listNamespacedDeployment(param: AppsV1ApiListNamespacedDeploymentRequest, options?: Configuration): Promise { + public listNamespacedDeployment(param: AppsV1ApiListNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedDeployment(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10552,7 +10553,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ReplicaSet * @param param the request object */ - public listNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiListNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public listNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiListNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedReplicaSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10560,7 +10561,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ReplicaSet * @param param the request object */ - public listNamespacedReplicaSet(param: AppsV1ApiListNamespacedReplicaSetRequest, options?: Configuration): Promise { + public listNamespacedReplicaSet(param: AppsV1ApiListNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedReplicaSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10568,7 +10569,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind StatefulSet * @param param the request object */ - public listNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiListNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public listNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiListNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedStatefulSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10576,7 +10577,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind StatefulSet * @param param the request object */ - public listNamespacedStatefulSet(param: AppsV1ApiListNamespacedStatefulSetRequest, options?: Configuration): Promise { + public listNamespacedStatefulSet(param: AppsV1ApiListNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedStatefulSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10584,7 +10585,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ReplicaSet * @param param the request object */ - public listReplicaSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListReplicaSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listReplicaSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListReplicaSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listReplicaSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10592,7 +10593,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind ReplicaSet * @param param the request object */ - public listReplicaSetForAllNamespaces(param: AppsV1ApiListReplicaSetForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listReplicaSetForAllNamespaces(param: AppsV1ApiListReplicaSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listReplicaSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10600,7 +10601,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind StatefulSet * @param param the request object */ - public listStatefulSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListStatefulSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listStatefulSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListStatefulSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listStatefulSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10608,7 +10609,7 @@ export class ObjectAppsV1Api { * list or watch objects of kind StatefulSet * @param param the request object */ - public listStatefulSetForAllNamespaces(param: AppsV1ApiListStatefulSetForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listStatefulSetForAllNamespaces(param: AppsV1ApiListStatefulSetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listStatefulSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -10616,7 +10617,7 @@ export class ObjectAppsV1Api { * partially update the specified ControllerRevision * @param param the request object */ - public patchNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiPatchNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public patchNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiPatchNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10624,7 +10625,7 @@ export class ObjectAppsV1Api { * partially update the specified ControllerRevision * @param param the request object */ - public patchNamespacedControllerRevision(param: AppsV1ApiPatchNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public patchNamespacedControllerRevision(param: AppsV1ApiPatchNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedControllerRevision(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10632,7 +10633,7 @@ export class ObjectAppsV1Api { * partially update the specified DaemonSet * @param param the request object */ - public patchNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public patchNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10640,7 +10641,7 @@ export class ObjectAppsV1Api { * partially update the specified DaemonSet * @param param the request object */ - public patchNamespacedDaemonSet(param: AppsV1ApiPatchNamespacedDaemonSetRequest, options?: Configuration): Promise { + public patchNamespacedDaemonSet(param: AppsV1ApiPatchNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedDaemonSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10648,7 +10649,7 @@ export class ObjectAppsV1Api { * partially update status of the specified DaemonSet * @param param the request object */ - public patchNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + public patchNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10656,7 +10657,7 @@ export class ObjectAppsV1Api { * partially update status of the specified DaemonSet * @param param the request object */ - public patchNamespacedDaemonSetStatus(param: AppsV1ApiPatchNamespacedDaemonSetStatusRequest, options?: Configuration): Promise { + public patchNamespacedDaemonSetStatus(param: AppsV1ApiPatchNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedDaemonSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10664,7 +10665,7 @@ export class ObjectAppsV1Api { * partially update the specified Deployment * @param param the request object */ - public patchNamespacedDeploymentWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentRequest, options?: Configuration): Promise> { + public patchNamespacedDeploymentWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10672,7 +10673,7 @@ export class ObjectAppsV1Api { * partially update the specified Deployment * @param param the request object */ - public patchNamespacedDeployment(param: AppsV1ApiPatchNamespacedDeploymentRequest, options?: Configuration): Promise { + public patchNamespacedDeployment(param: AppsV1ApiPatchNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedDeployment(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10680,7 +10681,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified Deployment * @param param the request object */ - public patchNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + public patchNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10688,7 +10689,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified Deployment * @param param the request object */ - public patchNamespacedDeploymentScale(param: AppsV1ApiPatchNamespacedDeploymentScaleRequest, options?: Configuration): Promise { + public patchNamespacedDeploymentScale(param: AppsV1ApiPatchNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedDeploymentScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10696,7 +10697,7 @@ export class ObjectAppsV1Api { * partially update status of the specified Deployment * @param param the request object */ - public patchNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + public patchNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10704,7 +10705,7 @@ export class ObjectAppsV1Api { * partially update status of the specified Deployment * @param param the request object */ - public patchNamespacedDeploymentStatus(param: AppsV1ApiPatchNamespacedDeploymentStatusRequest, options?: Configuration): Promise { + public patchNamespacedDeploymentStatus(param: AppsV1ApiPatchNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedDeploymentStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10712,7 +10713,7 @@ export class ObjectAppsV1Api { * partially update the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public patchNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10720,7 +10721,7 @@ export class ObjectAppsV1Api { * partially update the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSet(param: AppsV1ApiPatchNamespacedReplicaSetRequest, options?: Configuration): Promise { + public patchNamespacedReplicaSet(param: AppsV1ApiPatchNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicaSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10728,7 +10729,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + public patchNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10736,7 +10737,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSetScale(param: AppsV1ApiPatchNamespacedReplicaSetScaleRequest, options?: Configuration): Promise { + public patchNamespacedReplicaSetScale(param: AppsV1ApiPatchNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicaSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10744,7 +10745,7 @@ export class ObjectAppsV1Api { * partially update status of the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + public patchNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10752,7 +10753,7 @@ export class ObjectAppsV1Api { * partially update status of the specified ReplicaSet * @param param the request object */ - public patchNamespacedReplicaSetStatus(param: AppsV1ApiPatchNamespacedReplicaSetStatusRequest, options?: Configuration): Promise { + public patchNamespacedReplicaSetStatus(param: AppsV1ApiPatchNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicaSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10760,7 +10761,7 @@ export class ObjectAppsV1Api { * partially update the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public patchNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10768,7 +10769,7 @@ export class ObjectAppsV1Api { * partially update the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSet(param: AppsV1ApiPatchNamespacedStatefulSetRequest, options?: Configuration): Promise { + public patchNamespacedStatefulSet(param: AppsV1ApiPatchNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedStatefulSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10776,7 +10777,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + public patchNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10784,7 +10785,7 @@ export class ObjectAppsV1Api { * partially update scale of the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSetScale(param: AppsV1ApiPatchNamespacedStatefulSetScaleRequest, options?: Configuration): Promise { + public patchNamespacedStatefulSetScale(param: AppsV1ApiPatchNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedStatefulSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10792,7 +10793,7 @@ export class ObjectAppsV1Api { * partially update status of the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + public patchNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10800,7 +10801,7 @@ export class ObjectAppsV1Api { * partially update status of the specified StatefulSet * @param param the request object */ - public patchNamespacedStatefulSetStatus(param: AppsV1ApiPatchNamespacedStatefulSetStatusRequest, options?: Configuration): Promise { + public patchNamespacedStatefulSetStatus(param: AppsV1ApiPatchNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedStatefulSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -10808,7 +10809,7 @@ export class ObjectAppsV1Api { * read the specified ControllerRevision * @param param the request object */ - public readNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReadNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public readNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReadNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10816,7 +10817,7 @@ export class ObjectAppsV1Api { * read the specified ControllerRevision * @param param the request object */ - public readNamespacedControllerRevision(param: AppsV1ApiReadNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public readNamespacedControllerRevision(param: AppsV1ApiReadNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedControllerRevision(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10824,7 +10825,7 @@ export class ObjectAppsV1Api { * read the specified DaemonSet * @param param the request object */ - public readNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public readNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10832,7 +10833,7 @@ export class ObjectAppsV1Api { * read the specified DaemonSet * @param param the request object */ - public readNamespacedDaemonSet(param: AppsV1ApiReadNamespacedDaemonSetRequest, options?: Configuration): Promise { + public readNamespacedDaemonSet(param: AppsV1ApiReadNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedDaemonSet(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10840,7 +10841,7 @@ export class ObjectAppsV1Api { * read status of the specified DaemonSet * @param param the request object */ - public readNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + public readNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10848,7 +10849,7 @@ export class ObjectAppsV1Api { * read status of the specified DaemonSet * @param param the request object */ - public readNamespacedDaemonSetStatus(param: AppsV1ApiReadNamespacedDaemonSetStatusRequest, options?: Configuration): Promise { + public readNamespacedDaemonSetStatus(param: AppsV1ApiReadNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedDaemonSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10856,7 +10857,7 @@ export class ObjectAppsV1Api { * read the specified Deployment * @param param the request object */ - public readNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentRequest, options?: Configuration): Promise> { + public readNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10864,7 +10865,7 @@ export class ObjectAppsV1Api { * read the specified Deployment * @param param the request object */ - public readNamespacedDeployment(param: AppsV1ApiReadNamespacedDeploymentRequest, options?: Configuration): Promise { + public readNamespacedDeployment(param: AppsV1ApiReadNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedDeployment(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10872,7 +10873,7 @@ export class ObjectAppsV1Api { * read scale of the specified Deployment * @param param the request object */ - public readNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + public readNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10880,7 +10881,7 @@ export class ObjectAppsV1Api { * read scale of the specified Deployment * @param param the request object */ - public readNamespacedDeploymentScale(param: AppsV1ApiReadNamespacedDeploymentScaleRequest, options?: Configuration): Promise { + public readNamespacedDeploymentScale(param: AppsV1ApiReadNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedDeploymentScale(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10888,7 +10889,7 @@ export class ObjectAppsV1Api { * read status of the specified Deployment * @param param the request object */ - public readNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + public readNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10896,7 +10897,7 @@ export class ObjectAppsV1Api { * read status of the specified Deployment * @param param the request object */ - public readNamespacedDeploymentStatus(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: Configuration): Promise { + public readNamespacedDeploymentStatus(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedDeploymentStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10904,7 +10905,7 @@ export class ObjectAppsV1Api { * read the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public readNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10912,7 +10913,7 @@ export class ObjectAppsV1Api { * read the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSet(param: AppsV1ApiReadNamespacedReplicaSetRequest, options?: Configuration): Promise { + public readNamespacedReplicaSet(param: AppsV1ApiReadNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicaSet(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10920,7 +10921,7 @@ export class ObjectAppsV1Api { * read scale of the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + public readNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10928,7 +10929,7 @@ export class ObjectAppsV1Api { * read scale of the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSetScale(param: AppsV1ApiReadNamespacedReplicaSetScaleRequest, options?: Configuration): Promise { + public readNamespacedReplicaSetScale(param: AppsV1ApiReadNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicaSetScale(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10936,7 +10937,7 @@ export class ObjectAppsV1Api { * read status of the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + public readNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10944,7 +10945,7 @@ export class ObjectAppsV1Api { * read status of the specified ReplicaSet * @param param the request object */ - public readNamespacedReplicaSetStatus(param: AppsV1ApiReadNamespacedReplicaSetStatusRequest, options?: Configuration): Promise { + public readNamespacedReplicaSetStatus(param: AppsV1ApiReadNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicaSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10952,7 +10953,7 @@ export class ObjectAppsV1Api { * read the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public readNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10960,7 +10961,7 @@ export class ObjectAppsV1Api { * read the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSet(param: AppsV1ApiReadNamespacedStatefulSetRequest, options?: Configuration): Promise { + public readNamespacedStatefulSet(param: AppsV1ApiReadNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedStatefulSet(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10968,7 +10969,7 @@ export class ObjectAppsV1Api { * read scale of the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + public readNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10976,7 +10977,7 @@ export class ObjectAppsV1Api { * read scale of the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSetScale(param: AppsV1ApiReadNamespacedStatefulSetScaleRequest, options?: Configuration): Promise { + public readNamespacedStatefulSetScale(param: AppsV1ApiReadNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedStatefulSetScale(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10984,7 +10985,7 @@ export class ObjectAppsV1Api { * read status of the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + public readNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -10992,7 +10993,7 @@ export class ObjectAppsV1Api { * read status of the specified StatefulSet * @param param the request object */ - public readNamespacedStatefulSetStatus(param: AppsV1ApiReadNamespacedStatefulSetStatusRequest, options?: Configuration): Promise { + public readNamespacedStatefulSetStatus(param: AppsV1ApiReadNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedStatefulSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -11000,7 +11001,7 @@ export class ObjectAppsV1Api { * replace the specified ControllerRevision * @param param the request object */ - public replaceNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReplaceNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + public replaceNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReplaceNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11008,7 +11009,7 @@ export class ObjectAppsV1Api { * replace the specified ControllerRevision * @param param the request object */ - public replaceNamespacedControllerRevision(param: AppsV1ApiReplaceNamespacedControllerRevisionRequest, options?: Configuration): Promise { + public replaceNamespacedControllerRevision(param: AppsV1ApiReplaceNamespacedControllerRevisionRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedControllerRevision(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11016,7 +11017,7 @@ export class ObjectAppsV1Api { * replace the specified DaemonSet * @param param the request object */ - public replaceNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetRequest, options?: Configuration): Promise> { + public replaceNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11024,7 +11025,7 @@ export class ObjectAppsV1Api { * replace the specified DaemonSet * @param param the request object */ - public replaceNamespacedDaemonSet(param: AppsV1ApiReplaceNamespacedDaemonSetRequest, options?: Configuration): Promise { + public replaceNamespacedDaemonSet(param: AppsV1ApiReplaceNamespacedDaemonSetRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedDaemonSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11032,7 +11033,7 @@ export class ObjectAppsV1Api { * replace status of the specified DaemonSet * @param param the request object */ - public replaceNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11040,7 +11041,7 @@ export class ObjectAppsV1Api { * replace status of the specified DaemonSet * @param param the request object */ - public replaceNamespacedDaemonSetStatus(param: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, options?: Configuration): Promise { + public replaceNamespacedDaemonSetStatus(param: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedDaemonSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11048,7 +11049,7 @@ export class ObjectAppsV1Api { * replace the specified Deployment * @param param the request object */ - public replaceNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentRequest, options?: Configuration): Promise> { + public replaceNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11056,7 +11057,7 @@ export class ObjectAppsV1Api { * replace the specified Deployment * @param param the request object */ - public replaceNamespacedDeployment(param: AppsV1ApiReplaceNamespacedDeploymentRequest, options?: Configuration): Promise { + public replaceNamespacedDeployment(param: AppsV1ApiReplaceNamespacedDeploymentRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedDeployment(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11064,7 +11065,7 @@ export class ObjectAppsV1Api { * replace scale of the specified Deployment * @param param the request object */ - public replaceNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + public replaceNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11072,7 +11073,7 @@ export class ObjectAppsV1Api { * replace scale of the specified Deployment * @param param the request object */ - public replaceNamespacedDeploymentScale(param: AppsV1ApiReplaceNamespacedDeploymentScaleRequest, options?: Configuration): Promise { + public replaceNamespacedDeploymentScale(param: AppsV1ApiReplaceNamespacedDeploymentScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedDeploymentScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11080,7 +11081,7 @@ export class ObjectAppsV1Api { * replace status of the specified Deployment * @param param the request object */ - public replaceNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11088,7 +11089,7 @@ export class ObjectAppsV1Api { * replace status of the specified Deployment * @param param the request object */ - public replaceNamespacedDeploymentStatus(param: AppsV1ApiReplaceNamespacedDeploymentStatusRequest, options?: Configuration): Promise { + public replaceNamespacedDeploymentStatus(param: AppsV1ApiReplaceNamespacedDeploymentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedDeploymentStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11096,7 +11097,7 @@ export class ObjectAppsV1Api { * replace the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11104,7 +11105,7 @@ export class ObjectAppsV1Api { * replace the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSet(param: AppsV1ApiReplaceNamespacedReplicaSetRequest, options?: Configuration): Promise { + public replaceNamespacedReplicaSet(param: AppsV1ApiReplaceNamespacedReplicaSetRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicaSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11112,7 +11113,7 @@ export class ObjectAppsV1Api { * replace scale of the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11120,7 +11121,7 @@ export class ObjectAppsV1Api { * replace scale of the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSetScale(param: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, options?: Configuration): Promise { + public replaceNamespacedReplicaSetScale(param: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicaSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11128,7 +11129,7 @@ export class ObjectAppsV1Api { * replace status of the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11136,7 +11137,7 @@ export class ObjectAppsV1Api { * replace status of the specified ReplicaSet * @param param the request object */ - public replaceNamespacedReplicaSetStatus(param: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, options?: Configuration): Promise { + public replaceNamespacedReplicaSetStatus(param: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicaSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11144,7 +11145,7 @@ export class ObjectAppsV1Api { * replace the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetRequest, options?: Configuration): Promise> { + public replaceNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11152,7 +11153,7 @@ export class ObjectAppsV1Api { * replace the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSet(param: AppsV1ApiReplaceNamespacedStatefulSetRequest, options?: Configuration): Promise { + public replaceNamespacedStatefulSet(param: AppsV1ApiReplaceNamespacedStatefulSetRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedStatefulSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11160,7 +11161,7 @@ export class ObjectAppsV1Api { * replace scale of the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + public replaceNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11168,7 +11169,7 @@ export class ObjectAppsV1Api { * replace scale of the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSetScale(param: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, options?: Configuration): Promise { + public replaceNamespacedStatefulSetScale(param: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedStatefulSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11176,7 +11177,7 @@ export class ObjectAppsV1Api { * replace status of the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11184,7 +11185,7 @@ export class ObjectAppsV1Api { * replace status of the specified StatefulSet * @param param the request object */ - public replaceNamespacedStatefulSetStatus(param: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, options?: Configuration): Promise { + public replaceNamespacedStatefulSetStatus(param: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedStatefulSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -11207,7 +11208,7 @@ export class ObjectAuthenticationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: AuthenticationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: AuthenticationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -11215,7 +11216,7 @@ export class ObjectAuthenticationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: AuthenticationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: AuthenticationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -11312,7 +11313,7 @@ export class ObjectAuthenticationV1Api { * create a SelfSubjectReview * @param param the request object */ - public createSelfSubjectReviewWithHttpInfo(param: AuthenticationV1ApiCreateSelfSubjectReviewRequest, options?: Configuration): Promise> { + public createSelfSubjectReviewWithHttpInfo(param: AuthenticationV1ApiCreateSelfSubjectReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createSelfSubjectReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11320,7 +11321,7 @@ export class ObjectAuthenticationV1Api { * create a SelfSubjectReview * @param param the request object */ - public createSelfSubjectReview(param: AuthenticationV1ApiCreateSelfSubjectReviewRequest, options?: Configuration): Promise { + public createSelfSubjectReview(param: AuthenticationV1ApiCreateSelfSubjectReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createSelfSubjectReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11328,7 +11329,7 @@ export class ObjectAuthenticationV1Api { * create a TokenReview * @param param the request object */ - public createTokenReviewWithHttpInfo(param: AuthenticationV1ApiCreateTokenReviewRequest, options?: Configuration): Promise> { + public createTokenReviewWithHttpInfo(param: AuthenticationV1ApiCreateTokenReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createTokenReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11336,7 +11337,7 @@ export class ObjectAuthenticationV1Api { * create a TokenReview * @param param the request object */ - public createTokenReview(param: AuthenticationV1ApiCreateTokenReviewRequest, options?: Configuration): Promise { + public createTokenReview(param: AuthenticationV1ApiCreateTokenReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createTokenReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11344,7 +11345,7 @@ export class ObjectAuthenticationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AuthenticationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AuthenticationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -11352,7 +11353,7 @@ export class ObjectAuthenticationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AuthenticationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AuthenticationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -11412,7 +11413,7 @@ export class ObjectAuthenticationV1beta1Api { * create a SelfSubjectReview * @param param the request object */ - public createSelfSubjectReviewWithHttpInfo(param: AuthenticationV1beta1ApiCreateSelfSubjectReviewRequest, options?: Configuration): Promise> { + public createSelfSubjectReviewWithHttpInfo(param: AuthenticationV1beta1ApiCreateSelfSubjectReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createSelfSubjectReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11420,7 +11421,7 @@ export class ObjectAuthenticationV1beta1Api { * create a SelfSubjectReview * @param param the request object */ - public createSelfSubjectReview(param: AuthenticationV1beta1ApiCreateSelfSubjectReviewRequest, options?: Configuration): Promise { + public createSelfSubjectReview(param: AuthenticationV1beta1ApiCreateSelfSubjectReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createSelfSubjectReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11428,7 +11429,7 @@ export class ObjectAuthenticationV1beta1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AuthenticationV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AuthenticationV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -11436,7 +11437,7 @@ export class ObjectAuthenticationV1beta1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AuthenticationV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AuthenticationV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -11459,7 +11460,7 @@ export class ObjectAuthorizationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: AuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: AuthorizationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -11467,7 +11468,7 @@ export class ObjectAuthorizationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: AuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: AuthorizationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -11645,7 +11646,7 @@ export class ObjectAuthorizationV1Api { * create a LocalSubjectAccessReview * @param param the request object */ - public createNamespacedLocalSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, options?: Configuration): Promise> { + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11653,7 +11654,7 @@ export class ObjectAuthorizationV1Api { * create a LocalSubjectAccessReview * @param param the request object */ - public createNamespacedLocalSubjectAccessReview(param: AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, options?: Configuration): Promise { + public createNamespacedLocalSubjectAccessReview(param: AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedLocalSubjectAccessReview(param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11661,7 +11662,7 @@ export class ObjectAuthorizationV1Api { * create a SelfSubjectAccessReview * @param param the request object */ - public createSelfSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, options?: Configuration): Promise> { + public createSelfSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createSelfSubjectAccessReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11669,7 +11670,7 @@ export class ObjectAuthorizationV1Api { * create a SelfSubjectAccessReview * @param param the request object */ - public createSelfSubjectAccessReview(param: AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, options?: Configuration): Promise { + public createSelfSubjectAccessReview(param: AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createSelfSubjectAccessReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11677,7 +11678,7 @@ export class ObjectAuthorizationV1Api { * create a SelfSubjectRulesReview * @param param the request object */ - public createSelfSubjectRulesReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, options?: Configuration): Promise> { + public createSelfSubjectRulesReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createSelfSubjectRulesReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11685,7 +11686,7 @@ export class ObjectAuthorizationV1Api { * create a SelfSubjectRulesReview * @param param the request object */ - public createSelfSubjectRulesReview(param: AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, options?: Configuration): Promise { + public createSelfSubjectRulesReview(param: AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createSelfSubjectRulesReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11693,7 +11694,7 @@ export class ObjectAuthorizationV1Api { * create a SubjectAccessReview * @param param the request object */ - public createSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSubjectAccessReviewRequest, options?: Configuration): Promise> { + public createSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise> { return this.api.createSubjectAccessReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11701,7 +11702,7 @@ export class ObjectAuthorizationV1Api { * create a SubjectAccessReview * @param param the request object */ - public createSubjectAccessReview(param: AuthorizationV1ApiCreateSubjectAccessReviewRequest, options?: Configuration): Promise { + public createSubjectAccessReview(param: AuthorizationV1ApiCreateSubjectAccessReviewRequest, options?: ConfigurationOptions): Promise { return this.api.createSubjectAccessReview(param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -11709,7 +11710,7 @@ export class ObjectAuthorizationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AuthorizationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -11717,7 +11718,7 @@ export class ObjectAuthorizationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AuthorizationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -11740,7 +11741,7 @@ export class ObjectAutoscalingApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: AutoscalingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: AutoscalingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -11748,7 +11749,7 @@ export class ObjectAutoscalingApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: AutoscalingApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: AutoscalingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -12427,7 +12428,7 @@ export class ObjectAutoscalingV1Api { * create a HorizontalPodAutoscaler * @param param the request object */ - public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -12435,7 +12436,7 @@ export class ObjectAutoscalingV1Api { * create a HorizontalPodAutoscaler * @param param the request object */ - public createNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public createNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedHorizontalPodAutoscaler(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -12443,7 +12444,7 @@ export class ObjectAutoscalingV1Api { * delete collection of HorizontalPodAutoscaler * @param param the request object */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -12451,7 +12452,7 @@ export class ObjectAutoscalingV1Api { * delete collection of HorizontalPodAutoscaler * @param param the request object */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -12459,7 +12460,7 @@ export class ObjectAutoscalingV1Api { * delete a HorizontalPodAutoscaler * @param param the request object */ - public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -12467,7 +12468,7 @@ export class ObjectAutoscalingV1Api { * delete a HorizontalPodAutoscaler * @param param the request object */ - public deleteNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public deleteNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -12475,7 +12476,7 @@ export class ObjectAutoscalingV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AutoscalingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AutoscalingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -12483,7 +12484,7 @@ export class ObjectAutoscalingV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: AutoscalingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AutoscalingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -12491,7 +12492,7 @@ export class ObjectAutoscalingV1Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -12499,7 +12500,7 @@ export class ObjectAutoscalingV1Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listHorizontalPodAutoscalerForAllNamespaces(param: AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listHorizontalPodAutoscalerForAllNamespaces(param: AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listHorizontalPodAutoscalerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -12507,7 +12508,7 @@ export class ObjectAutoscalingV1Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -12515,7 +12516,7 @@ export class ObjectAutoscalingV1Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public listNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -12523,7 +12524,7 @@ export class ObjectAutoscalingV1Api { * partially update the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -12531,7 +12532,7 @@ export class ObjectAutoscalingV1Api { * partially update the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public patchNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -12539,7 +12540,7 @@ export class ObjectAutoscalingV1Api { * partially update status of the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -12547,7 +12548,7 @@ export class ObjectAutoscalingV1Api { * partially update status of the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public patchNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -12555,7 +12556,7 @@ export class ObjectAutoscalingV1Api { * read the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -12563,7 +12564,7 @@ export class ObjectAutoscalingV1Api { * read the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public readNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -12571,7 +12572,7 @@ export class ObjectAutoscalingV1Api { * read status of the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -12579,7 +12580,7 @@ export class ObjectAutoscalingV1Api { * read status of the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public readNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -12587,7 +12588,7 @@ export class ObjectAutoscalingV1Api { * replace the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -12595,7 +12596,7 @@ export class ObjectAutoscalingV1Api { * replace the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public replaceNamespacedHorizontalPodAutoscaler(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -12603,7 +12604,7 @@ export class ObjectAutoscalingV1Api { * replace status of the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -12611,7 +12612,7 @@ export class ObjectAutoscalingV1Api { * replace status of the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public replaceNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13290,7 +13291,7 @@ export class ObjectAutoscalingV2Api { * create a HorizontalPodAutoscaler * @param param the request object */ - public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13298,7 +13299,7 @@ export class ObjectAutoscalingV2Api { * create a HorizontalPodAutoscaler * @param param the request object */ - public createNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public createNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedHorizontalPodAutoscaler(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13306,7 +13307,7 @@ export class ObjectAutoscalingV2Api { * delete collection of HorizontalPodAutoscaler * @param param the request object */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -13314,7 +13315,7 @@ export class ObjectAutoscalingV2Api { * delete collection of HorizontalPodAutoscaler * @param param the request object */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -13322,7 +13323,7 @@ export class ObjectAutoscalingV2Api { * delete a HorizontalPodAutoscaler * @param param the request object */ - public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -13330,7 +13331,7 @@ export class ObjectAutoscalingV2Api { * delete a HorizontalPodAutoscaler * @param param the request object */ - public deleteNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public deleteNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -13338,7 +13339,7 @@ export class ObjectAutoscalingV2Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: AutoscalingV2ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: AutoscalingV2ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -13346,7 +13347,7 @@ export class ObjectAutoscalingV2Api { * get available resources * @param param the request object */ - public getAPIResources(param: AutoscalingV2ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: AutoscalingV2ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -13354,7 +13355,7 @@ export class ObjectAutoscalingV2Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -13362,7 +13363,7 @@ export class ObjectAutoscalingV2Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listHorizontalPodAutoscalerForAllNamespaces(param: AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listHorizontalPodAutoscalerForAllNamespaces(param: AutoscalingV2ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listHorizontalPodAutoscalerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -13370,7 +13371,7 @@ export class ObjectAutoscalingV2Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -13378,7 +13379,7 @@ export class ObjectAutoscalingV2Api { * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object */ - public listNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public listNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiListNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -13386,7 +13387,7 @@ export class ObjectAutoscalingV2Api { * partially update the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -13394,7 +13395,7 @@ export class ObjectAutoscalingV2Api { * partially update the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public patchNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -13402,7 +13403,7 @@ export class ObjectAutoscalingV2Api { * partially update status of the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -13410,7 +13411,7 @@ export class ObjectAutoscalingV2Api { * partially update status of the specified HorizontalPodAutoscaler * @param param the request object */ - public patchNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public patchNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -13418,7 +13419,7 @@ export class ObjectAutoscalingV2Api { * read the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -13426,7 +13427,7 @@ export class ObjectAutoscalingV2Api { * read the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public readNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -13434,7 +13435,7 @@ export class ObjectAutoscalingV2Api { * read status of the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -13442,7 +13443,7 @@ export class ObjectAutoscalingV2Api { * read status of the specified HorizontalPodAutoscaler * @param param the request object */ - public readNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public readNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -13450,7 +13451,7 @@ export class ObjectAutoscalingV2Api { * replace the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13458,7 +13459,7 @@ export class ObjectAutoscalingV2Api { * replace the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise { + public replaceNamespacedHorizontalPodAutoscaler(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13466,7 +13467,7 @@ export class ObjectAutoscalingV2Api { * replace status of the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13474,7 +13475,7 @@ export class ObjectAutoscalingV2Api { * replace status of the specified HorizontalPodAutoscaler * @param param the request object */ - public replaceNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise { + public replaceNamespacedHorizontalPodAutoscalerStatus(param: AutoscalingV2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -13497,7 +13498,7 @@ export class ObjectBatchApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: BatchApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: BatchApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -13505,7 +13506,7 @@ export class ObjectBatchApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: BatchApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: BatchApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -14840,7 +14841,7 @@ export class ObjectBatchV1Api { * create a CronJob * @param param the request object */ - public createNamespacedCronJobWithHttpInfo(param: BatchV1ApiCreateNamespacedCronJobRequest, options?: Configuration): Promise> { + public createNamespacedCronJobWithHttpInfo(param: BatchV1ApiCreateNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedCronJobWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -14848,7 +14849,7 @@ export class ObjectBatchV1Api { * create a CronJob * @param param the request object */ - public createNamespacedCronJob(param: BatchV1ApiCreateNamespacedCronJobRequest, options?: Configuration): Promise { + public createNamespacedCronJob(param: BatchV1ApiCreateNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedCronJob(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -14856,7 +14857,7 @@ export class ObjectBatchV1Api { * create a Job * @param param the request object */ - public createNamespacedJobWithHttpInfo(param: BatchV1ApiCreateNamespacedJobRequest, options?: Configuration): Promise> { + public createNamespacedJobWithHttpInfo(param: BatchV1ApiCreateNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedJobWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -14864,7 +14865,7 @@ export class ObjectBatchV1Api { * create a Job * @param param the request object */ - public createNamespacedJob(param: BatchV1ApiCreateNamespacedJobRequest, options?: Configuration): Promise { + public createNamespacedJob(param: BatchV1ApiCreateNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedJob(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -14872,7 +14873,7 @@ export class ObjectBatchV1Api { * delete collection of CronJob * @param param the request object */ - public deleteCollectionNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedCronJobRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -14880,7 +14881,7 @@ export class ObjectBatchV1Api { * delete collection of CronJob * @param param the request object */ - public deleteCollectionNamespacedCronJob(param: BatchV1ApiDeleteCollectionNamespacedCronJobRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedCronJob(param: BatchV1ApiDeleteCollectionNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedCronJob(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -14888,7 +14889,7 @@ export class ObjectBatchV1Api { * delete collection of Job * @param param the request object */ - public deleteCollectionNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedJobRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedJobWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -14896,7 +14897,7 @@ export class ObjectBatchV1Api { * delete collection of Job * @param param the request object */ - public deleteCollectionNamespacedJob(param: BatchV1ApiDeleteCollectionNamespacedJobRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedJob(param: BatchV1ApiDeleteCollectionNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedJob(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -14904,7 +14905,7 @@ export class ObjectBatchV1Api { * delete a CronJob * @param param the request object */ - public deleteNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedCronJobRequest, options?: Configuration): Promise> { + public deleteNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -14912,7 +14913,7 @@ export class ObjectBatchV1Api { * delete a CronJob * @param param the request object */ - public deleteNamespacedCronJob(param: BatchV1ApiDeleteNamespacedCronJobRequest, options?: Configuration): Promise { + public deleteNamespacedCronJob(param: BatchV1ApiDeleteNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedCronJob(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -14920,7 +14921,7 @@ export class ObjectBatchV1Api { * delete a Job * @param param the request object */ - public deleteNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedJobRequest, options?: Configuration): Promise> { + public deleteNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedJobWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -14928,7 +14929,7 @@ export class ObjectBatchV1Api { * delete a Job * @param param the request object */ - public deleteNamespacedJob(param: BatchV1ApiDeleteNamespacedJobRequest, options?: Configuration): Promise { + public deleteNamespacedJob(param: BatchV1ApiDeleteNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedJob(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -14936,7 +14937,7 @@ export class ObjectBatchV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: BatchV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: BatchV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -14944,7 +14945,7 @@ export class ObjectBatchV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: BatchV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: BatchV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -14952,7 +14953,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind CronJob * @param param the request object */ - public listCronJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListCronJobForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listCronJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListCronJobForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCronJobForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -14960,7 +14961,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind CronJob * @param param the request object */ - public listCronJobForAllNamespaces(param: BatchV1ApiListCronJobForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listCronJobForAllNamespaces(param: BatchV1ApiListCronJobForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCronJobForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -14968,7 +14969,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind Job * @param param the request object */ - public listJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListJobForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListJobForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listJobForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -14976,7 +14977,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind Job * @param param the request object */ - public listJobForAllNamespaces(param: BatchV1ApiListJobForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listJobForAllNamespaces(param: BatchV1ApiListJobForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listJobForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -14984,7 +14985,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind CronJob * @param param the request object */ - public listNamespacedCronJobWithHttpInfo(param: BatchV1ApiListNamespacedCronJobRequest, options?: Configuration): Promise> { + public listNamespacedCronJobWithHttpInfo(param: BatchV1ApiListNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -14992,7 +14993,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind CronJob * @param param the request object */ - public listNamespacedCronJob(param: BatchV1ApiListNamespacedCronJobRequest, options?: Configuration): Promise { + public listNamespacedCronJob(param: BatchV1ApiListNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedCronJob(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -15000,7 +15001,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind Job * @param param the request object */ - public listNamespacedJobWithHttpInfo(param: BatchV1ApiListNamespacedJobRequest, options?: Configuration): Promise> { + public listNamespacedJobWithHttpInfo(param: BatchV1ApiListNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedJobWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -15008,7 +15009,7 @@ export class ObjectBatchV1Api { * list or watch objects of kind Job * @param param the request object */ - public listNamespacedJob(param: BatchV1ApiListNamespacedJobRequest, options?: Configuration): Promise { + public listNamespacedJob(param: BatchV1ApiListNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedJob(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -15016,7 +15017,7 @@ export class ObjectBatchV1Api { * partially update the specified CronJob * @param param the request object */ - public patchNamespacedCronJobWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobRequest, options?: Configuration): Promise> { + public patchNamespacedCronJobWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15024,7 +15025,7 @@ export class ObjectBatchV1Api { * partially update the specified CronJob * @param param the request object */ - public patchNamespacedCronJob(param: BatchV1ApiPatchNamespacedCronJobRequest, options?: Configuration): Promise { + public patchNamespacedCronJob(param: BatchV1ApiPatchNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15032,7 +15033,7 @@ export class ObjectBatchV1Api { * partially update status of the specified CronJob * @param param the request object */ - public patchNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + public patchNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15040,7 +15041,7 @@ export class ObjectBatchV1Api { * partially update status of the specified CronJob * @param param the request object */ - public patchNamespacedCronJobStatus(param: BatchV1ApiPatchNamespacedCronJobStatusRequest, options?: Configuration): Promise { + public patchNamespacedCronJobStatus(param: BatchV1ApiPatchNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCronJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15048,7 +15049,7 @@ export class ObjectBatchV1Api { * partially update the specified Job * @param param the request object */ - public patchNamespacedJobWithHttpInfo(param: BatchV1ApiPatchNamespacedJobRequest, options?: Configuration): Promise> { + public patchNamespacedJobWithHttpInfo(param: BatchV1ApiPatchNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15056,7 +15057,7 @@ export class ObjectBatchV1Api { * partially update the specified Job * @param param the request object */ - public patchNamespacedJob(param: BatchV1ApiPatchNamespacedJobRequest, options?: Configuration): Promise { + public patchNamespacedJob(param: BatchV1ApiPatchNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15064,7 +15065,7 @@ export class ObjectBatchV1Api { * partially update status of the specified Job * @param param the request object */ - public patchNamespacedJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedJobStatusRequest, options?: Configuration): Promise> { + public patchNamespacedJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15072,7 +15073,7 @@ export class ObjectBatchV1Api { * partially update status of the specified Job * @param param the request object */ - public patchNamespacedJobStatus(param: BatchV1ApiPatchNamespacedJobStatusRequest, options?: Configuration): Promise { + public patchNamespacedJobStatus(param: BatchV1ApiPatchNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15080,7 +15081,7 @@ export class ObjectBatchV1Api { * read the specified CronJob * @param param the request object */ - public readNamespacedCronJobWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobRequest, options?: Configuration): Promise> { + public readNamespacedCronJobWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15088,7 +15089,7 @@ export class ObjectBatchV1Api { * read the specified CronJob * @param param the request object */ - public readNamespacedCronJob(param: BatchV1ApiReadNamespacedCronJobRequest, options?: Configuration): Promise { + public readNamespacedCronJob(param: BatchV1ApiReadNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedCronJob(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15096,7 +15097,7 @@ export class ObjectBatchV1Api { * read status of the specified CronJob * @param param the request object */ - public readNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + public readNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15104,7 +15105,7 @@ export class ObjectBatchV1Api { * read status of the specified CronJob * @param param the request object */ - public readNamespacedCronJobStatus(param: BatchV1ApiReadNamespacedCronJobStatusRequest, options?: Configuration): Promise { + public readNamespacedCronJobStatus(param: BatchV1ApiReadNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedCronJobStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15112,7 +15113,7 @@ export class ObjectBatchV1Api { * read the specified Job * @param param the request object */ - public readNamespacedJobWithHttpInfo(param: BatchV1ApiReadNamespacedJobRequest, options?: Configuration): Promise> { + public readNamespacedJobWithHttpInfo(param: BatchV1ApiReadNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedJobWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15120,7 +15121,7 @@ export class ObjectBatchV1Api { * read the specified Job * @param param the request object */ - public readNamespacedJob(param: BatchV1ApiReadNamespacedJobRequest, options?: Configuration): Promise { + public readNamespacedJob(param: BatchV1ApiReadNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedJob(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15128,7 +15129,7 @@ export class ObjectBatchV1Api { * read status of the specified Job * @param param the request object */ - public readNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedJobStatusRequest, options?: Configuration): Promise> { + public readNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15136,7 +15137,7 @@ export class ObjectBatchV1Api { * read status of the specified Job * @param param the request object */ - public readNamespacedJobStatus(param: BatchV1ApiReadNamespacedJobStatusRequest, options?: Configuration): Promise { + public readNamespacedJobStatus(param: BatchV1ApiReadNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedJobStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -15144,7 +15145,7 @@ export class ObjectBatchV1Api { * replace the specified CronJob * @param param the request object */ - public replaceNamespacedCronJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobRequest, options?: Configuration): Promise> { + public replaceNamespacedCronJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15152,7 +15153,7 @@ export class ObjectBatchV1Api { * replace the specified CronJob * @param param the request object */ - public replaceNamespacedCronJob(param: BatchV1ApiReplaceNamespacedCronJobRequest, options?: Configuration): Promise { + public replaceNamespacedCronJob(param: BatchV1ApiReplaceNamespacedCronJobRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15160,7 +15161,7 @@ export class ObjectBatchV1Api { * replace status of the specified CronJob * @param param the request object */ - public replaceNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15168,7 +15169,7 @@ export class ObjectBatchV1Api { * replace status of the specified CronJob * @param param the request object */ - public replaceNamespacedCronJobStatus(param: BatchV1ApiReplaceNamespacedCronJobStatusRequest, options?: Configuration): Promise { + public replaceNamespacedCronJobStatus(param: BatchV1ApiReplaceNamespacedCronJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCronJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15176,7 +15177,7 @@ export class ObjectBatchV1Api { * replace the specified Job * @param param the request object */ - public replaceNamespacedJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobRequest, options?: Configuration): Promise> { + public replaceNamespacedJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15184,7 +15185,7 @@ export class ObjectBatchV1Api { * replace the specified Job * @param param the request object */ - public replaceNamespacedJob(param: BatchV1ApiReplaceNamespacedJobRequest, options?: Configuration): Promise { + public replaceNamespacedJob(param: BatchV1ApiReplaceNamespacedJobRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15192,7 +15193,7 @@ export class ObjectBatchV1Api { * replace status of the specified Job * @param param the request object */ - public replaceNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15200,7 +15201,7 @@ export class ObjectBatchV1Api { * replace status of the specified Job * @param param the request object */ - public replaceNamespacedJobStatus(param: BatchV1ApiReplaceNamespacedJobStatusRequest, options?: Configuration): Promise { + public replaceNamespacedJobStatus(param: BatchV1ApiReplaceNamespacedJobStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15223,7 +15224,7 @@ export class ObjectCertificatesApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: CertificatesApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: CertificatesApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -15231,7 +15232,7 @@ export class ObjectCertificatesApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: CertificatesApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: CertificatesApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -15872,7 +15873,7 @@ export class ObjectCertificatesV1Api { * create a CertificateSigningRequest * @param param the request object */ - public createCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiCreateCertificateSigningRequestRequest, options?: Configuration): Promise> { + public createCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiCreateCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise> { return this.api.createCertificateSigningRequestWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15880,7 +15881,7 @@ export class ObjectCertificatesV1Api { * create a CertificateSigningRequest * @param param the request object */ - public createCertificateSigningRequest(param: CertificatesV1ApiCreateCertificateSigningRequestRequest, options?: Configuration): Promise { + public createCertificateSigningRequest(param: CertificatesV1ApiCreateCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise { return this.api.createCertificateSigningRequest(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -15888,7 +15889,7 @@ export class ObjectCertificatesV1Api { * delete a CertificateSigningRequest * @param param the request object */ - public deleteCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCertificateSigningRequestRequest, options?: Configuration): Promise> { + public deleteCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCertificateSigningRequestWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -15896,7 +15897,7 @@ export class ObjectCertificatesV1Api { * delete a CertificateSigningRequest * @param param the request object */ - public deleteCertificateSigningRequest(param: CertificatesV1ApiDeleteCertificateSigningRequestRequest, options?: Configuration): Promise { + public deleteCertificateSigningRequest(param: CertificatesV1ApiDeleteCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCertificateSigningRequest(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -15904,7 +15905,7 @@ export class ObjectCertificatesV1Api { * delete collection of CertificateSigningRequest * @param param the request object */ - public deleteCollectionCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest = {}, options?: Configuration): Promise> { + public deleteCollectionCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -15912,7 +15913,7 @@ export class ObjectCertificatesV1Api { * delete collection of CertificateSigningRequest * @param param the request object */ - public deleteCollectionCertificateSigningRequest(param: CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest = {}, options?: Configuration): Promise { + public deleteCollectionCertificateSigningRequest(param: CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionCertificateSigningRequest(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -15920,7 +15921,7 @@ export class ObjectCertificatesV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CertificatesV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CertificatesV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -15928,7 +15929,7 @@ export class ObjectCertificatesV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: CertificatesV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: CertificatesV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -15936,7 +15937,7 @@ export class ObjectCertificatesV1Api { * list or watch objects of kind CertificateSigningRequest * @param param the request object */ - public listCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiListCertificateSigningRequestRequest = {}, options?: Configuration): Promise> { + public listCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiListCertificateSigningRequestRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCertificateSigningRequestWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -15944,7 +15945,7 @@ export class ObjectCertificatesV1Api { * list or watch objects of kind CertificateSigningRequest * @param param the request object */ - public listCertificateSigningRequest(param: CertificatesV1ApiListCertificateSigningRequestRequest = {}, options?: Configuration): Promise { + public listCertificateSigningRequest(param: CertificatesV1ApiListCertificateSigningRequestRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCertificateSigningRequest(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -15952,7 +15953,7 @@ export class ObjectCertificatesV1Api { * partially update the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestRequest, options?: Configuration): Promise> { + public patchCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCertificateSigningRequestWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15960,7 +15961,7 @@ export class ObjectCertificatesV1Api { * partially update the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequest(param: CertificatesV1ApiPatchCertificateSigningRequestRequest, options?: Configuration): Promise { + public patchCertificateSigningRequest(param: CertificatesV1ApiPatchCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise { return this.api.patchCertificateSigningRequest(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15968,7 +15969,7 @@ export class ObjectCertificatesV1Api { * partially update approval of the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + public patchCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCertificateSigningRequestApprovalWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15976,7 +15977,7 @@ export class ObjectCertificatesV1Api { * partially update approval of the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequestApproval(param: CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, options?: Configuration): Promise { + public patchCertificateSigningRequestApproval(param: CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise { return this.api.patchCertificateSigningRequestApproval(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15984,7 +15985,7 @@ export class ObjectCertificatesV1Api { * partially update status of the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + public patchCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCertificateSigningRequestStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -15992,7 +15993,7 @@ export class ObjectCertificatesV1Api { * partially update status of the specified CertificateSigningRequest * @param param the request object */ - public patchCertificateSigningRequestStatus(param: CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, options?: Configuration): Promise { + public patchCertificateSigningRequestStatus(param: CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchCertificateSigningRequestStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -16000,7 +16001,7 @@ export class ObjectCertificatesV1Api { * read the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestRequest, options?: Configuration): Promise> { + public readCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise> { return this.api.readCertificateSigningRequestWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -16008,7 +16009,7 @@ export class ObjectCertificatesV1Api { * read the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequest(param: CertificatesV1ApiReadCertificateSigningRequestRequest, options?: Configuration): Promise { + public readCertificateSigningRequest(param: CertificatesV1ApiReadCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise { return this.api.readCertificateSigningRequest(param.name, param.pretty, options).toPromise(); } @@ -16016,7 +16017,7 @@ export class ObjectCertificatesV1Api { * read approval of the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + public readCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise> { return this.api.readCertificateSigningRequestApprovalWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -16024,7 +16025,7 @@ export class ObjectCertificatesV1Api { * read approval of the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequestApproval(param: CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, options?: Configuration): Promise { + public readCertificateSigningRequestApproval(param: CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise { return this.api.readCertificateSigningRequestApproval(param.name, param.pretty, options).toPromise(); } @@ -16032,7 +16033,7 @@ export class ObjectCertificatesV1Api { * read status of the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + public readCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readCertificateSigningRequestStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -16040,7 +16041,7 @@ export class ObjectCertificatesV1Api { * read status of the specified CertificateSigningRequest * @param param the request object */ - public readCertificateSigningRequestStatus(param: CertificatesV1ApiReadCertificateSigningRequestStatusRequest, options?: Configuration): Promise { + public readCertificateSigningRequestStatus(param: CertificatesV1ApiReadCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readCertificateSigningRequestStatus(param.name, param.pretty, options).toPromise(); } @@ -16048,7 +16049,7 @@ export class ObjectCertificatesV1Api { * replace the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestRequest, options?: Configuration): Promise> { + public replaceCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCertificateSigningRequestWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16056,7 +16057,7 @@ export class ObjectCertificatesV1Api { * replace the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequest(param: CertificatesV1ApiReplaceCertificateSigningRequestRequest, options?: Configuration): Promise { + public replaceCertificateSigningRequest(param: CertificatesV1ApiReplaceCertificateSigningRequestRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCertificateSigningRequest(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16064,7 +16065,7 @@ export class ObjectCertificatesV1Api { * replace approval of the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + public replaceCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16072,7 +16073,7 @@ export class ObjectCertificatesV1Api { * replace approval of the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequestApproval(param: CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, options?: Configuration): Promise { + public replaceCertificateSigningRequestApproval(param: CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCertificateSigningRequestApproval(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16080,7 +16081,7 @@ export class ObjectCertificatesV1Api { * replace status of the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + public replaceCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCertificateSigningRequestStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16088,7 +16089,7 @@ export class ObjectCertificatesV1Api { * replace status of the specified CertificateSigningRequest * @param param the request object */ - public replaceCertificateSigningRequestStatus(param: CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, options?: Configuration): Promise { + public replaceCertificateSigningRequestStatus(param: CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCertificateSigningRequestStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16505,7 +16506,7 @@ export class ObjectCertificatesV1alpha1Api { * create a ClusterTrustBundle * @param param the request object */ - public createClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, options?: Configuration): Promise> { + public createClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, options?: ConfigurationOptions): Promise> { return this.api.createClusterTrustBundleWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16513,7 +16514,7 @@ export class ObjectCertificatesV1alpha1Api { * create a ClusterTrustBundle * @param param the request object */ - public createClusterTrustBundle(param: CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, options?: Configuration): Promise { + public createClusterTrustBundle(param: CertificatesV1alpha1ApiCreateClusterTrustBundleRequest, options?: ConfigurationOptions): Promise { return this.api.createClusterTrustBundle(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16521,7 +16522,7 @@ export class ObjectCertificatesV1alpha1Api { * delete a ClusterTrustBundle * @param param the request object */ - public deleteClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, options?: Configuration): Promise> { + public deleteClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteClusterTrustBundleWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -16529,7 +16530,7 @@ export class ObjectCertificatesV1alpha1Api { * delete a ClusterTrustBundle * @param param the request object */ - public deleteClusterTrustBundle(param: CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, options?: Configuration): Promise { + public deleteClusterTrustBundle(param: CertificatesV1alpha1ApiDeleteClusterTrustBundleRequest, options?: ConfigurationOptions): Promise { return this.api.deleteClusterTrustBundle(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -16537,7 +16538,7 @@ export class ObjectCertificatesV1alpha1Api { * delete collection of ClusterTrustBundle * @param param the request object */ - public deleteCollectionClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest = {}, options?: Configuration): Promise> { + public deleteCollectionClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionClusterTrustBundleWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -16545,7 +16546,7 @@ export class ObjectCertificatesV1alpha1Api { * delete collection of ClusterTrustBundle * @param param the request object */ - public deleteCollectionClusterTrustBundle(param: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest = {}, options?: Configuration): Promise { + public deleteCollectionClusterTrustBundle(param: CertificatesV1alpha1ApiDeleteCollectionClusterTrustBundleRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionClusterTrustBundle(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -16553,7 +16554,7 @@ export class ObjectCertificatesV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CertificatesV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CertificatesV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -16561,7 +16562,7 @@ export class ObjectCertificatesV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResources(param: CertificatesV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: CertificatesV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -16569,7 +16570,7 @@ export class ObjectCertificatesV1alpha1Api { * list or watch objects of kind ClusterTrustBundle * @param param the request object */ - public listClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiListClusterTrustBundleRequest = {}, options?: Configuration): Promise> { + public listClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiListClusterTrustBundleRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listClusterTrustBundleWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -16577,7 +16578,7 @@ export class ObjectCertificatesV1alpha1Api { * list or watch objects of kind ClusterTrustBundle * @param param the request object */ - public listClusterTrustBundle(param: CertificatesV1alpha1ApiListClusterTrustBundleRequest = {}, options?: Configuration): Promise { + public listClusterTrustBundle(param: CertificatesV1alpha1ApiListClusterTrustBundleRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listClusterTrustBundle(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -16585,7 +16586,7 @@ export class ObjectCertificatesV1alpha1Api { * partially update the specified ClusterTrustBundle * @param param the request object */ - public patchClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, options?: Configuration): Promise> { + public patchClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterTrustBundleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -16593,7 +16594,7 @@ export class ObjectCertificatesV1alpha1Api { * partially update the specified ClusterTrustBundle * @param param the request object */ - public patchClusterTrustBundle(param: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, options?: Configuration): Promise { + public patchClusterTrustBundle(param: CertificatesV1alpha1ApiPatchClusterTrustBundleRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterTrustBundle(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -16601,7 +16602,7 @@ export class ObjectCertificatesV1alpha1Api { * read the specified ClusterTrustBundle * @param param the request object */ - public readClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiReadClusterTrustBundleRequest, options?: Configuration): Promise> { + public readClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiReadClusterTrustBundleRequest, options?: ConfigurationOptions): Promise> { return this.api.readClusterTrustBundleWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -16609,7 +16610,7 @@ export class ObjectCertificatesV1alpha1Api { * read the specified ClusterTrustBundle * @param param the request object */ - public readClusterTrustBundle(param: CertificatesV1alpha1ApiReadClusterTrustBundleRequest, options?: Configuration): Promise { + public readClusterTrustBundle(param: CertificatesV1alpha1ApiReadClusterTrustBundleRequest, options?: ConfigurationOptions): Promise { return this.api.readClusterTrustBundle(param.name, param.pretty, options).toPromise(); } @@ -16617,7 +16618,7 @@ export class ObjectCertificatesV1alpha1Api { * replace the specified ClusterTrustBundle * @param param the request object */ - public replaceClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, options?: Configuration): Promise> { + public replaceClusterTrustBundleWithHttpInfo(param: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterTrustBundleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16625,7 +16626,7 @@ export class ObjectCertificatesV1alpha1Api { * replace the specified ClusterTrustBundle * @param param the request object */ - public replaceClusterTrustBundle(param: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, options?: Configuration): Promise { + public replaceClusterTrustBundle(param: CertificatesV1alpha1ApiReplaceClusterTrustBundleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterTrustBundle(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -16648,7 +16649,7 @@ export class ObjectCoordinationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: CoordinationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: CoordinationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -16656,7 +16657,7 @@ export class ObjectCoordinationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: CoordinationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: CoordinationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -17202,7 +17203,7 @@ export class ObjectCoordinationV1Api { * create a Lease * @param param the request object */ - public createNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiCreateNamespacedLeaseRequest, options?: Configuration): Promise> { + public createNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiCreateNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedLeaseWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17210,7 +17211,7 @@ export class ObjectCoordinationV1Api { * create a Lease * @param param the request object */ - public createNamespacedLease(param: CoordinationV1ApiCreateNamespacedLeaseRequest, options?: Configuration): Promise { + public createNamespacedLease(param: CoordinationV1ApiCreateNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedLease(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17218,7 +17219,7 @@ export class ObjectCoordinationV1Api { * delete collection of Lease * @param param the request object */ - public deleteCollectionNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedLeaseWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -17226,7 +17227,7 @@ export class ObjectCoordinationV1Api { * delete collection of Lease * @param param the request object */ - public deleteCollectionNamespacedLease(param: CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedLease(param: CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedLease(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -17234,7 +17235,7 @@ export class ObjectCoordinationV1Api { * delete a Lease * @param param the request object */ - public deleteNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteNamespacedLeaseRequest, options?: Configuration): Promise> { + public deleteNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -17242,7 +17243,7 @@ export class ObjectCoordinationV1Api { * delete a Lease * @param param the request object */ - public deleteNamespacedLease(param: CoordinationV1ApiDeleteNamespacedLeaseRequest, options?: Configuration): Promise { + public deleteNamespacedLease(param: CoordinationV1ApiDeleteNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedLease(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -17250,7 +17251,7 @@ export class ObjectCoordinationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CoordinationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CoordinationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -17258,7 +17259,7 @@ export class ObjectCoordinationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: CoordinationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: CoordinationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -17266,7 +17267,7 @@ export class ObjectCoordinationV1Api { * list or watch objects of kind Lease * @param param the request object */ - public listLeaseForAllNamespacesWithHttpInfo(param: CoordinationV1ApiListLeaseForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listLeaseForAllNamespacesWithHttpInfo(param: CoordinationV1ApiListLeaseForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listLeaseForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17274,7 +17275,7 @@ export class ObjectCoordinationV1Api { * list or watch objects of kind Lease * @param param the request object */ - public listLeaseForAllNamespaces(param: CoordinationV1ApiListLeaseForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listLeaseForAllNamespaces(param: CoordinationV1ApiListLeaseForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listLeaseForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17282,7 +17283,7 @@ export class ObjectCoordinationV1Api { * list or watch objects of kind Lease * @param param the request object */ - public listNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiListNamespacedLeaseRequest, options?: Configuration): Promise> { + public listNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiListNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedLeaseWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17290,7 +17291,7 @@ export class ObjectCoordinationV1Api { * list or watch objects of kind Lease * @param param the request object */ - public listNamespacedLease(param: CoordinationV1ApiListNamespacedLeaseRequest, options?: Configuration): Promise { + public listNamespacedLease(param: CoordinationV1ApiListNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedLease(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17298,7 +17299,7 @@ export class ObjectCoordinationV1Api { * partially update the specified Lease * @param param the request object */ - public patchNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiPatchNamespacedLeaseRequest, options?: Configuration): Promise> { + public patchNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiPatchNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -17306,7 +17307,7 @@ export class ObjectCoordinationV1Api { * partially update the specified Lease * @param param the request object */ - public patchNamespacedLease(param: CoordinationV1ApiPatchNamespacedLeaseRequest, options?: Configuration): Promise { + public patchNamespacedLease(param: CoordinationV1ApiPatchNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedLease(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -17314,7 +17315,7 @@ export class ObjectCoordinationV1Api { * read the specified Lease * @param param the request object */ - public readNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReadNamespacedLeaseRequest, options?: Configuration): Promise> { + public readNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReadNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -17322,7 +17323,7 @@ export class ObjectCoordinationV1Api { * read the specified Lease * @param param the request object */ - public readNamespacedLease(param: CoordinationV1ApiReadNamespacedLeaseRequest, options?: Configuration): Promise { + public readNamespacedLease(param: CoordinationV1ApiReadNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedLease(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -17330,7 +17331,7 @@ export class ObjectCoordinationV1Api { * replace the specified Lease * @param param the request object */ - public replaceNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReplaceNamespacedLeaseRequest, options?: Configuration): Promise> { + public replaceNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReplaceNamespacedLeaseRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17338,7 +17339,7 @@ export class ObjectCoordinationV1Api { * replace the specified Lease * @param param the request object */ - public replaceNamespacedLease(param: CoordinationV1ApiReplaceNamespacedLeaseRequest, options?: Configuration): Promise { + public replaceNamespacedLease(param: CoordinationV1ApiReplaceNamespacedLeaseRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedLease(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17884,7 +17885,7 @@ export class ObjectCoordinationV1alpha2Api { * create a LeaseCandidate * @param param the request object */ - public createNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public createNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedLeaseCandidateWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17892,7 +17893,7 @@ export class ObjectCoordinationV1alpha2Api { * create a LeaseCandidate * @param param the request object */ - public createNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public createNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiCreateNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedLeaseCandidate(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -17900,7 +17901,7 @@ export class ObjectCoordinationV1alpha2Api { * delete collection of LeaseCandidate * @param param the request object */ - public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -17908,7 +17909,7 @@ export class ObjectCoordinationV1alpha2Api { * delete collection of LeaseCandidate * @param param the request object */ - public deleteCollectionNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiDeleteCollectionNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedLeaseCandidate(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -17916,7 +17917,7 @@ export class ObjectCoordinationV1alpha2Api { * delete a LeaseCandidate * @param param the request object */ - public deleteNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public deleteNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedLeaseCandidateWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -17924,7 +17925,7 @@ export class ObjectCoordinationV1alpha2Api { * delete a LeaseCandidate * @param param the request object */ - public deleteNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public deleteNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiDeleteNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedLeaseCandidate(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -17932,7 +17933,7 @@ export class ObjectCoordinationV1alpha2Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CoordinationV1alpha2ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CoordinationV1alpha2ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -17940,7 +17941,7 @@ export class ObjectCoordinationV1alpha2Api { * get available resources * @param param the request object */ - public getAPIResources(param: CoordinationV1alpha2ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: CoordinationV1alpha2ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -17948,7 +17949,7 @@ export class ObjectCoordinationV1alpha2Api { * list or watch objects of kind LeaseCandidate * @param param the request object */ - public listLeaseCandidateForAllNamespacesWithHttpInfo(param: CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listLeaseCandidateForAllNamespacesWithHttpInfo(param: CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listLeaseCandidateForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17956,7 +17957,7 @@ export class ObjectCoordinationV1alpha2Api { * list or watch objects of kind LeaseCandidate * @param param the request object */ - public listLeaseCandidateForAllNamespaces(param: CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listLeaseCandidateForAllNamespaces(param: CoordinationV1alpha2ApiListLeaseCandidateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listLeaseCandidateForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17964,7 +17965,7 @@ export class ObjectCoordinationV1alpha2Api { * list or watch objects of kind LeaseCandidate * @param param the request object */ - public listNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public listNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedLeaseCandidateWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17972,7 +17973,7 @@ export class ObjectCoordinationV1alpha2Api { * list or watch objects of kind LeaseCandidate * @param param the request object */ - public listNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public listNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiListNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedLeaseCandidate(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -17980,7 +17981,7 @@ export class ObjectCoordinationV1alpha2Api { * partially update the specified LeaseCandidate * @param param the request object */ - public patchNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public patchNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedLeaseCandidateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -17988,7 +17989,7 @@ export class ObjectCoordinationV1alpha2Api { * partially update the specified LeaseCandidate * @param param the request object */ - public patchNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public patchNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiPatchNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedLeaseCandidate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -17996,7 +17997,7 @@ export class ObjectCoordinationV1alpha2Api { * read the specified LeaseCandidate * @param param the request object */ - public readNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public readNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedLeaseCandidateWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -18004,7 +18005,7 @@ export class ObjectCoordinationV1alpha2Api { * read the specified LeaseCandidate * @param param the request object */ - public readNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public readNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiReadNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedLeaseCandidate(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -18012,7 +18013,7 @@ export class ObjectCoordinationV1alpha2Api { * replace the specified LeaseCandidate * @param param the request object */ - public replaceNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, options?: Configuration): Promise> { + public replaceNamespacedLeaseCandidateWithHttpInfo(param: CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedLeaseCandidateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -18020,7 +18021,7 @@ export class ObjectCoordinationV1alpha2Api { * replace the specified LeaseCandidate * @param param the request object */ - public replaceNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, options?: Configuration): Promise { + public replaceNamespacedLeaseCandidate(param: CoordinationV1alpha2ApiReplaceNamespacedLeaseCandidateRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedLeaseCandidate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -18043,7 +18044,7 @@ export class ObjectCoreApi { * get available API versions * @param param the request object */ - public getAPIVersionsWithHttpInfo(param: CoreApiGetAPIVersionsRequest = {}, options?: Configuration): Promise> { + public getAPIVersionsWithHttpInfo(param: CoreApiGetAPIVersionsRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIVersionsWithHttpInfo( options).toPromise(); } @@ -18051,7 +18052,7 @@ export class ObjectCoreApi { * get available API versions * @param param the request object */ - public getAPIVersions(param: CoreApiGetAPIVersionsRequest = {}, options?: Configuration): Promise { + public getAPIVersions(param: CoreApiGetAPIVersionsRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIVersions( options).toPromise(); } @@ -28577,7 +28578,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Pod * @param param the request object */ - public connectDeleteNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectDeleteNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28585,7 +28586,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Pod * @param param the request object */ - public connectDeleteNamespacedPodProxy(param: CoreV1ApiConnectDeleteNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectDeleteNamespacedPodProxy(param: CoreV1ApiConnectDeleteNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28593,7 +28594,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Pod * @param param the request object */ - public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28601,7 +28602,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Pod * @param param the request object */ - public connectDeleteNamespacedPodProxyWithPath(param: CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectDeleteNamespacedPodProxyWithPath(param: CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28609,7 +28610,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Service * @param param the request object */ - public connectDeleteNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectDeleteNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28617,7 +28618,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Service * @param param the request object */ - public connectDeleteNamespacedServiceProxy(param: CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectDeleteNamespacedServiceProxy(param: CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28625,7 +28626,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Service * @param param the request object */ - public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28633,7 +28634,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Service * @param param the request object */ - public connectDeleteNamespacedServiceProxyWithPath(param: CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectDeleteNamespacedServiceProxyWithPath(param: CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28641,7 +28642,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Node * @param param the request object */ - public connectDeleteNodeProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyRequest, options?: Configuration): Promise> { + public connectDeleteNodeProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -28649,7 +28650,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Node * @param param the request object */ - public connectDeleteNodeProxy(param: CoreV1ApiConnectDeleteNodeProxyRequest, options?: Configuration): Promise { + public connectDeleteNodeProxy(param: CoreV1ApiConnectDeleteNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNodeProxy(param.name, param.path, options).toPromise(); } @@ -28657,7 +28658,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Node * @param param the request object */ - public connectDeleteNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectDeleteNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectDeleteNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -28665,7 +28666,7 @@ export class ObjectCoreV1Api { * connect DELETE requests to proxy of Node * @param param the request object */ - public connectDeleteNodeProxyWithPath(param: CoreV1ApiConnectDeleteNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectDeleteNodeProxyWithPath(param: CoreV1ApiConnectDeleteNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectDeleteNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -28673,7 +28674,7 @@ export class ObjectCoreV1Api { * connect GET requests to attach of Pod * @param param the request object */ - public connectGetNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodAttachRequest, options?: Configuration): Promise> { + public connectGetNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodAttachRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedPodAttachWithHttpInfo(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -28681,7 +28682,7 @@ export class ObjectCoreV1Api { * connect GET requests to attach of Pod * @param param the request object */ - public connectGetNamespacedPodAttach(param: CoreV1ApiConnectGetNamespacedPodAttachRequest, options?: Configuration): Promise { + public connectGetNamespacedPodAttach(param: CoreV1ApiConnectGetNamespacedPodAttachRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedPodAttach(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -28689,7 +28690,7 @@ export class ObjectCoreV1Api { * connect GET requests to exec of Pod * @param param the request object */ - public connectGetNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodExecRequest, options?: Configuration): Promise> { + public connectGetNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodExecRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedPodExecWithHttpInfo(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -28697,7 +28698,7 @@ export class ObjectCoreV1Api { * connect GET requests to exec of Pod * @param param the request object */ - public connectGetNamespacedPodExec(param: CoreV1ApiConnectGetNamespacedPodExecRequest, options?: Configuration): Promise { + public connectGetNamespacedPodExec(param: CoreV1ApiConnectGetNamespacedPodExecRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedPodExec(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -28705,7 +28706,7 @@ export class ObjectCoreV1Api { * connect GET requests to portforward of Pod * @param param the request object */ - public connectGetNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodPortforwardRequest, options?: Configuration): Promise> { + public connectGetNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodPortforwardRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedPodPortforwardWithHttpInfo(param.name, param.namespace, param.ports, options).toPromise(); } @@ -28713,7 +28714,7 @@ export class ObjectCoreV1Api { * connect GET requests to portforward of Pod * @param param the request object */ - public connectGetNamespacedPodPortforward(param: CoreV1ApiConnectGetNamespacedPodPortforwardRequest, options?: Configuration): Promise { + public connectGetNamespacedPodPortforward(param: CoreV1ApiConnectGetNamespacedPodPortforwardRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedPodPortforward(param.name, param.namespace, param.ports, options).toPromise(); } @@ -28721,7 +28722,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Pod * @param param the request object */ - public connectGetNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectGetNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28729,7 +28730,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Pod * @param param the request object */ - public connectGetNamespacedPodProxy(param: CoreV1ApiConnectGetNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectGetNamespacedPodProxy(param: CoreV1ApiConnectGetNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28737,7 +28738,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Pod * @param param the request object */ - public connectGetNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectGetNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28745,7 +28746,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Pod * @param param the request object */ - public connectGetNamespacedPodProxyWithPath(param: CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectGetNamespacedPodProxyWithPath(param: CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28753,7 +28754,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Service * @param param the request object */ - public connectGetNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectGetNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28761,7 +28762,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Service * @param param the request object */ - public connectGetNamespacedServiceProxy(param: CoreV1ApiConnectGetNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectGetNamespacedServiceProxy(param: CoreV1ApiConnectGetNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28769,7 +28770,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Service * @param param the request object */ - public connectGetNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28777,7 +28778,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Service * @param param the request object */ - public connectGetNamespacedServiceProxyWithPath(param: CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectGetNamespacedServiceProxyWithPath(param: CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28785,7 +28786,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Node * @param param the request object */ - public connectGetNodeProxyWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyRequest, options?: Configuration): Promise> { + public connectGetNodeProxyWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -28793,7 +28794,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Node * @param param the request object */ - public connectGetNodeProxy(param: CoreV1ApiConnectGetNodeProxyRequest, options?: Configuration): Promise { + public connectGetNodeProxy(param: CoreV1ApiConnectGetNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNodeProxy(param.name, param.path, options).toPromise(); } @@ -28801,7 +28802,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Node * @param param the request object */ - public connectGetNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectGetNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectGetNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -28809,7 +28810,7 @@ export class ObjectCoreV1Api { * connect GET requests to proxy of Node * @param param the request object */ - public connectGetNodeProxyWithPath(param: CoreV1ApiConnectGetNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectGetNodeProxyWithPath(param: CoreV1ApiConnectGetNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectGetNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -28817,7 +28818,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Pod * @param param the request object */ - public connectHeadNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectHeadNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28825,7 +28826,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Pod * @param param the request object */ - public connectHeadNamespacedPodProxy(param: CoreV1ApiConnectHeadNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectHeadNamespacedPodProxy(param: CoreV1ApiConnectHeadNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28833,7 +28834,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Pod * @param param the request object */ - public connectHeadNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28841,7 +28842,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Pod * @param param the request object */ - public connectHeadNamespacedPodProxyWithPath(param: CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectHeadNamespacedPodProxyWithPath(param: CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28849,7 +28850,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Service * @param param the request object */ - public connectHeadNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectHeadNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28857,7 +28858,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Service * @param param the request object */ - public connectHeadNamespacedServiceProxy(param: CoreV1ApiConnectHeadNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectHeadNamespacedServiceProxy(param: CoreV1ApiConnectHeadNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28865,7 +28866,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Service * @param param the request object */ - public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28873,7 +28874,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Service * @param param the request object */ - public connectHeadNamespacedServiceProxyWithPath(param: CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectHeadNamespacedServiceProxyWithPath(param: CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28881,7 +28882,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Node * @param param the request object */ - public connectHeadNodeProxyWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyRequest, options?: Configuration): Promise> { + public connectHeadNodeProxyWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -28889,7 +28890,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Node * @param param the request object */ - public connectHeadNodeProxy(param: CoreV1ApiConnectHeadNodeProxyRequest, options?: Configuration): Promise { + public connectHeadNodeProxy(param: CoreV1ApiConnectHeadNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNodeProxy(param.name, param.path, options).toPromise(); } @@ -28897,7 +28898,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Node * @param param the request object */ - public connectHeadNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectHeadNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectHeadNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -28905,7 +28906,7 @@ export class ObjectCoreV1Api { * connect HEAD requests to proxy of Node * @param param the request object */ - public connectHeadNodeProxyWithPath(param: CoreV1ApiConnectHeadNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectHeadNodeProxyWithPath(param: CoreV1ApiConnectHeadNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectHeadNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -28913,7 +28914,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Pod * @param param the request object */ - public connectOptionsNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectOptionsNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28921,7 +28922,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Pod * @param param the request object */ - public connectOptionsNamespacedPodProxy(param: CoreV1ApiConnectOptionsNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectOptionsNamespacedPodProxy(param: CoreV1ApiConnectOptionsNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28929,7 +28930,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Pod * @param param the request object */ - public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28937,7 +28938,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Pod * @param param the request object */ - public connectOptionsNamespacedPodProxyWithPath(param: CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectOptionsNamespacedPodProxyWithPath(param: CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28945,7 +28946,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Service * @param param the request object */ - public connectOptionsNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectOptionsNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -28953,7 +28954,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Service * @param param the request object */ - public connectOptionsNamespacedServiceProxy(param: CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectOptionsNamespacedServiceProxy(param: CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -28961,7 +28962,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Service * @param param the request object */ - public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28969,7 +28970,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Service * @param param the request object */ - public connectOptionsNamespacedServiceProxyWithPath(param: CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectOptionsNamespacedServiceProxyWithPath(param: CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -28977,7 +28978,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Node * @param param the request object */ - public connectOptionsNodeProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyRequest, options?: Configuration): Promise> { + public connectOptionsNodeProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -28985,7 +28986,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Node * @param param the request object */ - public connectOptionsNodeProxy(param: CoreV1ApiConnectOptionsNodeProxyRequest, options?: Configuration): Promise { + public connectOptionsNodeProxy(param: CoreV1ApiConnectOptionsNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNodeProxy(param.name, param.path, options).toPromise(); } @@ -28993,7 +28994,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Node * @param param the request object */ - public connectOptionsNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectOptionsNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectOptionsNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -29001,7 +29002,7 @@ export class ObjectCoreV1Api { * connect OPTIONS requests to proxy of Node * @param param the request object */ - public connectOptionsNodeProxyWithPath(param: CoreV1ApiConnectOptionsNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectOptionsNodeProxyWithPath(param: CoreV1ApiConnectOptionsNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectOptionsNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -29009,7 +29010,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Pod * @param param the request object */ - public connectPatchNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectPatchNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29017,7 +29018,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Pod * @param param the request object */ - public connectPatchNamespacedPodProxy(param: CoreV1ApiConnectPatchNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectPatchNamespacedPodProxy(param: CoreV1ApiConnectPatchNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29025,7 +29026,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Pod * @param param the request object */ - public connectPatchNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29033,7 +29034,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Pod * @param param the request object */ - public connectPatchNamespacedPodProxyWithPath(param: CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectPatchNamespacedPodProxyWithPath(param: CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29041,7 +29042,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Service * @param param the request object */ - public connectPatchNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectPatchNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29049,7 +29050,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Service * @param param the request object */ - public connectPatchNamespacedServiceProxy(param: CoreV1ApiConnectPatchNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectPatchNamespacedServiceProxy(param: CoreV1ApiConnectPatchNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29057,7 +29058,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Service * @param param the request object */ - public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29065,7 +29066,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Service * @param param the request object */ - public connectPatchNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectPatchNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29073,7 +29074,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Node * @param param the request object */ - public connectPatchNodeProxyWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyRequest, options?: Configuration): Promise> { + public connectPatchNodeProxyWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -29081,7 +29082,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Node * @param param the request object */ - public connectPatchNodeProxy(param: CoreV1ApiConnectPatchNodeProxyRequest, options?: Configuration): Promise { + public connectPatchNodeProxy(param: CoreV1ApiConnectPatchNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNodeProxy(param.name, param.path, options).toPromise(); } @@ -29089,7 +29090,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Node * @param param the request object */ - public connectPatchNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectPatchNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPatchNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -29097,7 +29098,7 @@ export class ObjectCoreV1Api { * connect PATCH requests to proxy of Node * @param param the request object */ - public connectPatchNodeProxyWithPath(param: CoreV1ApiConnectPatchNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectPatchNodeProxyWithPath(param: CoreV1ApiConnectPatchNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPatchNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -29105,7 +29106,7 @@ export class ObjectCoreV1Api { * connect POST requests to attach of Pod * @param param the request object */ - public connectPostNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodAttachRequest, options?: Configuration): Promise> { + public connectPostNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodAttachRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedPodAttachWithHttpInfo(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -29113,7 +29114,7 @@ export class ObjectCoreV1Api { * connect POST requests to attach of Pod * @param param the request object */ - public connectPostNamespacedPodAttach(param: CoreV1ApiConnectPostNamespacedPodAttachRequest, options?: Configuration): Promise { + public connectPostNamespacedPodAttach(param: CoreV1ApiConnectPostNamespacedPodAttachRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedPodAttach(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -29121,7 +29122,7 @@ export class ObjectCoreV1Api { * connect POST requests to exec of Pod * @param param the request object */ - public connectPostNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodExecRequest, options?: Configuration): Promise> { + public connectPostNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodExecRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedPodExecWithHttpInfo(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -29129,7 +29130,7 @@ export class ObjectCoreV1Api { * connect POST requests to exec of Pod * @param param the request object */ - public connectPostNamespacedPodExec(param: CoreV1ApiConnectPostNamespacedPodExecRequest, options?: Configuration): Promise { + public connectPostNamespacedPodExec(param: CoreV1ApiConnectPostNamespacedPodExecRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedPodExec(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } @@ -29137,7 +29138,7 @@ export class ObjectCoreV1Api { * connect POST requests to portforward of Pod * @param param the request object */ - public connectPostNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodPortforwardRequest, options?: Configuration): Promise> { + public connectPostNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodPortforwardRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedPodPortforwardWithHttpInfo(param.name, param.namespace, param.ports, options).toPromise(); } @@ -29145,7 +29146,7 @@ export class ObjectCoreV1Api { * connect POST requests to portforward of Pod * @param param the request object */ - public connectPostNamespacedPodPortforward(param: CoreV1ApiConnectPostNamespacedPodPortforwardRequest, options?: Configuration): Promise { + public connectPostNamespacedPodPortforward(param: CoreV1ApiConnectPostNamespacedPodPortforwardRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedPodPortforward(param.name, param.namespace, param.ports, options).toPromise(); } @@ -29153,7 +29154,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Pod * @param param the request object */ - public connectPostNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectPostNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29161,7 +29162,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Pod * @param param the request object */ - public connectPostNamespacedPodProxy(param: CoreV1ApiConnectPostNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectPostNamespacedPodProxy(param: CoreV1ApiConnectPostNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29169,7 +29170,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Pod * @param param the request object */ - public connectPostNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectPostNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29177,7 +29178,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Pod * @param param the request object */ - public connectPostNamespacedPodProxyWithPath(param: CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectPostNamespacedPodProxyWithPath(param: CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29185,7 +29186,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Service * @param param the request object */ - public connectPostNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectPostNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29193,7 +29194,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Service * @param param the request object */ - public connectPostNamespacedServiceProxy(param: CoreV1ApiConnectPostNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectPostNamespacedServiceProxy(param: CoreV1ApiConnectPostNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29201,7 +29202,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Service * @param param the request object */ - public connectPostNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29209,7 +29210,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Service * @param param the request object */ - public connectPostNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectPostNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29217,7 +29218,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Node * @param param the request object */ - public connectPostNodeProxyWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyRequest, options?: Configuration): Promise> { + public connectPostNodeProxyWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -29225,7 +29226,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Node * @param param the request object */ - public connectPostNodeProxy(param: CoreV1ApiConnectPostNodeProxyRequest, options?: Configuration): Promise { + public connectPostNodeProxy(param: CoreV1ApiConnectPostNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNodeProxy(param.name, param.path, options).toPromise(); } @@ -29233,7 +29234,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Node * @param param the request object */ - public connectPostNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectPostNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPostNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -29241,7 +29242,7 @@ export class ObjectCoreV1Api { * connect POST requests to proxy of Node * @param param the request object */ - public connectPostNodeProxyWithPath(param: CoreV1ApiConnectPostNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectPostNodeProxyWithPath(param: CoreV1ApiConnectPostNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPostNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -29249,7 +29250,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Pod * @param param the request object */ - public connectPutNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyRequest, options?: Configuration): Promise> { + public connectPutNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29257,7 +29258,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Pod * @param param the request object */ - public connectPutNamespacedPodProxy(param: CoreV1ApiConnectPutNamespacedPodProxyRequest, options?: Configuration): Promise { + public connectPutNamespacedPodProxy(param: CoreV1ApiConnectPutNamespacedPodProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29265,7 +29266,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Pod * @param param the request object */ - public connectPutNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + public connectPutNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29273,7 +29274,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Pod * @param param the request object */ - public connectPutNamespacedPodProxyWithPath(param: CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, options?: Configuration): Promise { + public connectPutNamespacedPodProxyWithPath(param: CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29281,7 +29282,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Service * @param param the request object */ - public connectPutNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyRequest, options?: Configuration): Promise> { + public connectPutNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); } @@ -29289,7 +29290,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Service * @param param the request object */ - public connectPutNamespacedServiceProxy(param: CoreV1ApiConnectPutNamespacedServiceProxyRequest, options?: Configuration): Promise { + public connectPutNamespacedServiceProxy(param: CoreV1ApiConnectPutNamespacedServiceProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } @@ -29297,7 +29298,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Service * @param param the request object */ - public connectPutNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29305,7 +29306,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Service * @param param the request object */ - public connectPutNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise { + public connectPutNamespacedServiceProxyWithPath(param: CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } @@ -29313,7 +29314,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Node * @param param the request object */ - public connectPutNodeProxyWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyRequest, options?: Configuration): Promise> { + public connectPutNodeProxyWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); } @@ -29321,7 +29322,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Node * @param param the request object */ - public connectPutNodeProxy(param: CoreV1ApiConnectPutNodeProxyRequest, options?: Configuration): Promise { + public connectPutNodeProxy(param: CoreV1ApiConnectPutNodeProxyRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNodeProxy(param.name, param.path, options).toPromise(); } @@ -29329,7 +29330,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Node * @param param the request object */ - public connectPutNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyWithPathRequest, options?: Configuration): Promise> { + public connectPutNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise> { return this.api.connectPutNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); } @@ -29337,7 +29338,7 @@ export class ObjectCoreV1Api { * connect PUT requests to proxy of Node * @param param the request object */ - public connectPutNodeProxyWithPath(param: CoreV1ApiConnectPutNodeProxyWithPathRequest, options?: Configuration): Promise { + public connectPutNodeProxyWithPath(param: CoreV1ApiConnectPutNodeProxyWithPathRequest, options?: ConfigurationOptions): Promise { return this.api.connectPutNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } @@ -29345,7 +29346,7 @@ export class ObjectCoreV1Api { * create a Namespace * @param param the request object */ - public createNamespaceWithHttpInfo(param: CoreV1ApiCreateNamespaceRequest, options?: Configuration): Promise> { + public createNamespaceWithHttpInfo(param: CoreV1ApiCreateNamespaceRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespaceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29353,7 +29354,7 @@ export class ObjectCoreV1Api { * create a Namespace * @param param the request object */ - public createNamespace(param: CoreV1ApiCreateNamespaceRequest, options?: Configuration): Promise { + public createNamespace(param: CoreV1ApiCreateNamespaceRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespace(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29361,7 +29362,7 @@ export class ObjectCoreV1Api { * create a Binding * @param param the request object */ - public createNamespacedBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedBindingRequest, options?: Configuration): Promise> { + public createNamespacedBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedBindingWithHttpInfo(param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29369,7 +29370,7 @@ export class ObjectCoreV1Api { * create a Binding * @param param the request object */ - public createNamespacedBinding(param: CoreV1ApiCreateNamespacedBindingRequest, options?: Configuration): Promise { + public createNamespacedBinding(param: CoreV1ApiCreateNamespacedBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedBinding(param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29377,7 +29378,7 @@ export class ObjectCoreV1Api { * create a ConfigMap * @param param the request object */ - public createNamespacedConfigMapWithHttpInfo(param: CoreV1ApiCreateNamespacedConfigMapRequest, options?: Configuration): Promise> { + public createNamespacedConfigMapWithHttpInfo(param: CoreV1ApiCreateNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedConfigMapWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29385,7 +29386,7 @@ export class ObjectCoreV1Api { * create a ConfigMap * @param param the request object */ - public createNamespacedConfigMap(param: CoreV1ApiCreateNamespacedConfigMapRequest, options?: Configuration): Promise { + public createNamespacedConfigMap(param: CoreV1ApiCreateNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedConfigMap(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29393,7 +29394,7 @@ export class ObjectCoreV1Api { * create Endpoints * @param param the request object */ - public createNamespacedEndpointsWithHttpInfo(param: CoreV1ApiCreateNamespacedEndpointsRequest, options?: Configuration): Promise> { + public createNamespacedEndpointsWithHttpInfo(param: CoreV1ApiCreateNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedEndpointsWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29401,7 +29402,7 @@ export class ObjectCoreV1Api { * create Endpoints * @param param the request object */ - public createNamespacedEndpoints(param: CoreV1ApiCreateNamespacedEndpointsRequest, options?: Configuration): Promise { + public createNamespacedEndpoints(param: CoreV1ApiCreateNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedEndpoints(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29409,7 +29410,7 @@ export class ObjectCoreV1Api { * create an Event * @param param the request object */ - public createNamespacedEventWithHttpInfo(param: CoreV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise> { + public createNamespacedEventWithHttpInfo(param: CoreV1ApiCreateNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedEventWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29417,7 +29418,7 @@ export class ObjectCoreV1Api { * create an Event * @param param the request object */ - public createNamespacedEvent(param: CoreV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise { + public createNamespacedEvent(param: CoreV1ApiCreateNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedEvent(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29425,7 +29426,7 @@ export class ObjectCoreV1Api { * create a LimitRange * @param param the request object */ - public createNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiCreateNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public createNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiCreateNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedLimitRangeWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29433,7 +29434,7 @@ export class ObjectCoreV1Api { * create a LimitRange * @param param the request object */ - public createNamespacedLimitRange(param: CoreV1ApiCreateNamespacedLimitRangeRequest, options?: Configuration): Promise { + public createNamespacedLimitRange(param: CoreV1ApiCreateNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedLimitRange(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29441,7 +29442,7 @@ export class ObjectCoreV1Api { * create a PersistentVolumeClaim * @param param the request object */ - public createNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public createNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29449,7 +29450,7 @@ export class ObjectCoreV1Api { * create a PersistentVolumeClaim * @param param the request object */ - public createNamespacedPersistentVolumeClaim(param: CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public createNamespacedPersistentVolumeClaim(param: CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPersistentVolumeClaim(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29457,7 +29458,7 @@ export class ObjectCoreV1Api { * create a Pod * @param param the request object */ - public createNamespacedPodWithHttpInfo(param: CoreV1ApiCreateNamespacedPodRequest, options?: Configuration): Promise> { + public createNamespacedPodWithHttpInfo(param: CoreV1ApiCreateNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPodWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29465,7 +29466,7 @@ export class ObjectCoreV1Api { * create a Pod * @param param the request object */ - public createNamespacedPod(param: CoreV1ApiCreateNamespacedPodRequest, options?: Configuration): Promise { + public createNamespacedPod(param: CoreV1ApiCreateNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPod(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29473,7 +29474,7 @@ export class ObjectCoreV1Api { * create binding of a Pod * @param param the request object */ - public createNamespacedPodBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedPodBindingRequest, options?: Configuration): Promise> { + public createNamespacedPodBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedPodBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPodBindingWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29481,7 +29482,7 @@ export class ObjectCoreV1Api { * create binding of a Pod * @param param the request object */ - public createNamespacedPodBinding(param: CoreV1ApiCreateNamespacedPodBindingRequest, options?: Configuration): Promise { + public createNamespacedPodBinding(param: CoreV1ApiCreateNamespacedPodBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPodBinding(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29489,7 +29490,7 @@ export class ObjectCoreV1Api { * create eviction of a Pod * @param param the request object */ - public createNamespacedPodEvictionWithHttpInfo(param: CoreV1ApiCreateNamespacedPodEvictionRequest, options?: Configuration): Promise> { + public createNamespacedPodEvictionWithHttpInfo(param: CoreV1ApiCreateNamespacedPodEvictionRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPodEvictionWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29497,7 +29498,7 @@ export class ObjectCoreV1Api { * create eviction of a Pod * @param param the request object */ - public createNamespacedPodEviction(param: CoreV1ApiCreateNamespacedPodEvictionRequest, options?: Configuration): Promise { + public createNamespacedPodEviction(param: CoreV1ApiCreateNamespacedPodEvictionRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPodEviction(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29505,7 +29506,7 @@ export class ObjectCoreV1Api { * create a PodTemplate * @param param the request object */ - public createNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiCreateNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public createNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiCreateNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPodTemplateWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29513,7 +29514,7 @@ export class ObjectCoreV1Api { * create a PodTemplate * @param param the request object */ - public createNamespacedPodTemplate(param: CoreV1ApiCreateNamespacedPodTemplateRequest, options?: Configuration): Promise { + public createNamespacedPodTemplate(param: CoreV1ApiCreateNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPodTemplate(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29521,7 +29522,7 @@ export class ObjectCoreV1Api { * create a ReplicationController * @param param the request object */ - public createNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public createNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedReplicationControllerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29529,7 +29530,7 @@ export class ObjectCoreV1Api { * create a ReplicationController * @param param the request object */ - public createNamespacedReplicationController(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public createNamespacedReplicationController(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedReplicationController(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29537,7 +29538,7 @@ export class ObjectCoreV1Api { * create a ResourceQuota * @param param the request object */ - public createNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiCreateNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public createNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiCreateNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedResourceQuotaWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29545,7 +29546,7 @@ export class ObjectCoreV1Api { * create a ResourceQuota * @param param the request object */ - public createNamespacedResourceQuota(param: CoreV1ApiCreateNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public createNamespacedResourceQuota(param: CoreV1ApiCreateNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedResourceQuota(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29553,7 +29554,7 @@ export class ObjectCoreV1Api { * create a Secret * @param param the request object */ - public createNamespacedSecretWithHttpInfo(param: CoreV1ApiCreateNamespacedSecretRequest, options?: Configuration): Promise> { + public createNamespacedSecretWithHttpInfo(param: CoreV1ApiCreateNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedSecretWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29561,7 +29562,7 @@ export class ObjectCoreV1Api { * create a Secret * @param param the request object */ - public createNamespacedSecret(param: CoreV1ApiCreateNamespacedSecretRequest, options?: Configuration): Promise { + public createNamespacedSecret(param: CoreV1ApiCreateNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedSecret(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29569,7 +29570,7 @@ export class ObjectCoreV1Api { * create a Service * @param param the request object */ - public createNamespacedServiceWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceRequest, options?: Configuration): Promise> { + public createNamespacedServiceWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedServiceWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29577,7 +29578,7 @@ export class ObjectCoreV1Api { * create a Service * @param param the request object */ - public createNamespacedService(param: CoreV1ApiCreateNamespacedServiceRequest, options?: Configuration): Promise { + public createNamespacedService(param: CoreV1ApiCreateNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedService(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29585,7 +29586,7 @@ export class ObjectCoreV1Api { * create a ServiceAccount * @param param the request object */ - public createNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public createNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedServiceAccountWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29593,7 +29594,7 @@ export class ObjectCoreV1Api { * create a ServiceAccount * @param param the request object */ - public createNamespacedServiceAccount(param: CoreV1ApiCreateNamespacedServiceAccountRequest, options?: Configuration): Promise { + public createNamespacedServiceAccount(param: CoreV1ApiCreateNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedServiceAccount(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29601,7 +29602,7 @@ export class ObjectCoreV1Api { * create token of a ServiceAccount * @param param the request object */ - public createNamespacedServiceAccountTokenWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountTokenRequest, options?: Configuration): Promise> { + public createNamespacedServiceAccountTokenWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountTokenRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedServiceAccountTokenWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29609,7 +29610,7 @@ export class ObjectCoreV1Api { * create token of a ServiceAccount * @param param the request object */ - public createNamespacedServiceAccountToken(param: CoreV1ApiCreateNamespacedServiceAccountTokenRequest, options?: Configuration): Promise { + public createNamespacedServiceAccountToken(param: CoreV1ApiCreateNamespacedServiceAccountTokenRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedServiceAccountToken(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -29617,7 +29618,7 @@ export class ObjectCoreV1Api { * create a Node * @param param the request object */ - public createNodeWithHttpInfo(param: CoreV1ApiCreateNodeRequest, options?: Configuration): Promise> { + public createNodeWithHttpInfo(param: CoreV1ApiCreateNodeRequest, options?: ConfigurationOptions): Promise> { return this.api.createNodeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29625,7 +29626,7 @@ export class ObjectCoreV1Api { * create a Node * @param param the request object */ - public createNode(param: CoreV1ApiCreateNodeRequest, options?: Configuration): Promise { + public createNode(param: CoreV1ApiCreateNodeRequest, options?: ConfigurationOptions): Promise { return this.api.createNode(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29633,7 +29634,7 @@ export class ObjectCoreV1Api { * create a PersistentVolume * @param param the request object */ - public createPersistentVolumeWithHttpInfo(param: CoreV1ApiCreatePersistentVolumeRequest, options?: Configuration): Promise> { + public createPersistentVolumeWithHttpInfo(param: CoreV1ApiCreatePersistentVolumeRequest, options?: ConfigurationOptions): Promise> { return this.api.createPersistentVolumeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29641,7 +29642,7 @@ export class ObjectCoreV1Api { * create a PersistentVolume * @param param the request object */ - public createPersistentVolume(param: CoreV1ApiCreatePersistentVolumeRequest, options?: Configuration): Promise { + public createPersistentVolume(param: CoreV1ApiCreatePersistentVolumeRequest, options?: ConfigurationOptions): Promise { return this.api.createPersistentVolume(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -29649,7 +29650,7 @@ export class ObjectCoreV1Api { * delete collection of ConfigMap * @param param the request object */ - public deleteCollectionNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedConfigMapWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29657,7 +29658,7 @@ export class ObjectCoreV1Api { * delete collection of ConfigMap * @param param the request object */ - public deleteCollectionNamespacedConfigMap(param: CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedConfigMap(param: CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedConfigMap(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29665,7 +29666,7 @@ export class ObjectCoreV1Api { * delete collection of Endpoints * @param param the request object */ - public deleteCollectionNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedEndpointsWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29673,7 +29674,7 @@ export class ObjectCoreV1Api { * delete collection of Endpoints * @param param the request object */ - public deleteCollectionNamespacedEndpoints(param: CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedEndpoints(param: CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedEndpoints(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29681,7 +29682,7 @@ export class ObjectCoreV1Api { * delete collection of Event * @param param the request object */ - public deleteCollectionNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedEventWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29689,7 +29690,7 @@ export class ObjectCoreV1Api { * delete collection of Event * @param param the request object */ - public deleteCollectionNamespacedEvent(param: CoreV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedEvent(param: CoreV1ApiDeleteCollectionNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedEvent(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29697,7 +29698,7 @@ export class ObjectCoreV1Api { * delete collection of LimitRange * @param param the request object */ - public deleteCollectionNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedLimitRangeWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29705,7 +29706,7 @@ export class ObjectCoreV1Api { * delete collection of LimitRange * @param param the request object */ - public deleteCollectionNamespacedLimitRange(param: CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedLimitRange(param: CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedLimitRange(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29713,7 +29714,7 @@ export class ObjectCoreV1Api { * delete collection of PersistentVolumeClaim * @param param the request object */ - public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29721,7 +29722,7 @@ export class ObjectCoreV1Api { * delete collection of PersistentVolumeClaim * @param param the request object */ - public deleteCollectionNamespacedPersistentVolumeClaim(param: CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedPersistentVolumeClaim(param: CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedPersistentVolumeClaim(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29729,7 +29730,7 @@ export class ObjectCoreV1Api { * delete collection of Pod * @param param the request object */ - public deleteCollectionNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedPodWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29737,7 +29738,7 @@ export class ObjectCoreV1Api { * delete collection of Pod * @param param the request object */ - public deleteCollectionNamespacedPod(param: CoreV1ApiDeleteCollectionNamespacedPodRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedPod(param: CoreV1ApiDeleteCollectionNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedPod(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29745,7 +29746,7 @@ export class ObjectCoreV1Api { * delete collection of PodTemplate * @param param the request object */ - public deleteCollectionNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedPodTemplateWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29753,7 +29754,7 @@ export class ObjectCoreV1Api { * delete collection of PodTemplate * @param param the request object */ - public deleteCollectionNamespacedPodTemplate(param: CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedPodTemplate(param: CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedPodTemplate(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29761,7 +29762,7 @@ export class ObjectCoreV1Api { * delete collection of ReplicationController * @param param the request object */ - public deleteCollectionNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedReplicationControllerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29769,7 +29770,7 @@ export class ObjectCoreV1Api { * delete collection of ReplicationController * @param param the request object */ - public deleteCollectionNamespacedReplicationController(param: CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedReplicationController(param: CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedReplicationController(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29777,7 +29778,7 @@ export class ObjectCoreV1Api { * delete collection of ResourceQuota * @param param the request object */ - public deleteCollectionNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedResourceQuotaWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29785,7 +29786,7 @@ export class ObjectCoreV1Api { * delete collection of ResourceQuota * @param param the request object */ - public deleteCollectionNamespacedResourceQuota(param: CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedResourceQuota(param: CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedResourceQuota(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29793,7 +29794,7 @@ export class ObjectCoreV1Api { * delete collection of Secret * @param param the request object */ - public deleteCollectionNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedSecretRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedSecretWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29801,7 +29802,7 @@ export class ObjectCoreV1Api { * delete collection of Secret * @param param the request object */ - public deleteCollectionNamespacedSecret(param: CoreV1ApiDeleteCollectionNamespacedSecretRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedSecret(param: CoreV1ApiDeleteCollectionNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedSecret(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29809,7 +29810,7 @@ export class ObjectCoreV1Api { * delete collection of Service * @param param the request object */ - public deleteCollectionNamespacedServiceWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedServiceRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedServiceWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedServiceWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29817,7 +29818,7 @@ export class ObjectCoreV1Api { * delete collection of Service * @param param the request object */ - public deleteCollectionNamespacedService(param: CoreV1ApiDeleteCollectionNamespacedServiceRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedService(param: CoreV1ApiDeleteCollectionNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedService(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29825,7 +29826,7 @@ export class ObjectCoreV1Api { * delete collection of ServiceAccount * @param param the request object */ - public deleteCollectionNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedServiceAccountWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29833,7 +29834,7 @@ export class ObjectCoreV1Api { * delete collection of ServiceAccount * @param param the request object */ - public deleteCollectionNamespacedServiceAccount(param: CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedServiceAccount(param: CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedServiceAccount(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29841,7 +29842,7 @@ export class ObjectCoreV1Api { * delete collection of Node * @param param the request object */ - public deleteCollectionNodeWithHttpInfo(param: CoreV1ApiDeleteCollectionNodeRequest = {}, options?: Configuration): Promise> { + public deleteCollectionNodeWithHttpInfo(param: CoreV1ApiDeleteCollectionNodeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNodeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29849,7 +29850,7 @@ export class ObjectCoreV1Api { * delete collection of Node * @param param the request object */ - public deleteCollectionNode(param: CoreV1ApiDeleteCollectionNodeRequest = {}, options?: Configuration): Promise { + public deleteCollectionNode(param: CoreV1ApiDeleteCollectionNodeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNode(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29857,7 +29858,7 @@ export class ObjectCoreV1Api { * delete collection of PersistentVolume * @param param the request object */ - public deleteCollectionPersistentVolumeWithHttpInfo(param: CoreV1ApiDeleteCollectionPersistentVolumeRequest = {}, options?: Configuration): Promise> { + public deleteCollectionPersistentVolumeWithHttpInfo(param: CoreV1ApiDeleteCollectionPersistentVolumeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionPersistentVolumeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29865,7 +29866,7 @@ export class ObjectCoreV1Api { * delete collection of PersistentVolume * @param param the request object */ - public deleteCollectionPersistentVolume(param: CoreV1ApiDeleteCollectionPersistentVolumeRequest = {}, options?: Configuration): Promise { + public deleteCollectionPersistentVolume(param: CoreV1ApiDeleteCollectionPersistentVolumeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionPersistentVolume(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -29873,7 +29874,7 @@ export class ObjectCoreV1Api { * delete a Namespace * @param param the request object */ - public deleteNamespaceWithHttpInfo(param: CoreV1ApiDeleteNamespaceRequest, options?: Configuration): Promise> { + public deleteNamespaceWithHttpInfo(param: CoreV1ApiDeleteNamespaceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespaceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29881,7 +29882,7 @@ export class ObjectCoreV1Api { * delete a Namespace * @param param the request object */ - public deleteNamespace(param: CoreV1ApiDeleteNamespaceRequest, options?: Configuration): Promise { + public deleteNamespace(param: CoreV1ApiDeleteNamespaceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespace(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29889,7 +29890,7 @@ export class ObjectCoreV1Api { * delete a ConfigMap * @param param the request object */ - public deleteNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteNamespacedConfigMapRequest, options?: Configuration): Promise> { + public deleteNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29897,7 +29898,7 @@ export class ObjectCoreV1Api { * delete a ConfigMap * @param param the request object */ - public deleteNamespacedConfigMap(param: CoreV1ApiDeleteNamespacedConfigMapRequest, options?: Configuration): Promise { + public deleteNamespacedConfigMap(param: CoreV1ApiDeleteNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedConfigMap(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29905,7 +29906,7 @@ export class ObjectCoreV1Api { * delete Endpoints * @param param the request object */ - public deleteNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteNamespacedEndpointsRequest, options?: Configuration): Promise> { + public deleteNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29913,7 +29914,7 @@ export class ObjectCoreV1Api { * delete Endpoints * @param param the request object */ - public deleteNamespacedEndpoints(param: CoreV1ApiDeleteNamespacedEndpointsRequest, options?: Configuration): Promise { + public deleteNamespacedEndpoints(param: CoreV1ApiDeleteNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedEndpoints(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29921,7 +29922,7 @@ export class ObjectCoreV1Api { * delete an Event * @param param the request object */ - public deleteNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise> { + public deleteNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29929,7 +29930,7 @@ export class ObjectCoreV1Api { * delete an Event * @param param the request object */ - public deleteNamespacedEvent(param: CoreV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise { + public deleteNamespacedEvent(param: CoreV1ApiDeleteNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedEvent(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29937,7 +29938,7 @@ export class ObjectCoreV1Api { * delete a LimitRange * @param param the request object */ - public deleteNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public deleteNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29945,7 +29946,7 @@ export class ObjectCoreV1Api { * delete a LimitRange * @param param the request object */ - public deleteNamespacedLimitRange(param: CoreV1ApiDeleteNamespacedLimitRangeRequest, options?: Configuration): Promise { + public deleteNamespacedLimitRange(param: CoreV1ApiDeleteNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedLimitRange(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29953,7 +29954,7 @@ export class ObjectCoreV1Api { * delete a PersistentVolumeClaim * @param param the request object */ - public deleteNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public deleteNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29961,7 +29962,7 @@ export class ObjectCoreV1Api { * delete a PersistentVolumeClaim * @param param the request object */ - public deleteNamespacedPersistentVolumeClaim(param: CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public deleteNamespacedPersistentVolumeClaim(param: CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedPersistentVolumeClaim(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29969,7 +29970,7 @@ export class ObjectCoreV1Api { * delete a Pod * @param param the request object */ - public deleteNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodRequest, options?: Configuration): Promise> { + public deleteNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedPodWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29977,7 +29978,7 @@ export class ObjectCoreV1Api { * delete a Pod * @param param the request object */ - public deleteNamespacedPod(param: CoreV1ApiDeleteNamespacedPodRequest, options?: Configuration): Promise { + public deleteNamespacedPod(param: CoreV1ApiDeleteNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedPod(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29985,7 +29986,7 @@ export class ObjectCoreV1Api { * delete a PodTemplate * @param param the request object */ - public deleteNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public deleteNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -29993,7 +29994,7 @@ export class ObjectCoreV1Api { * delete a PodTemplate * @param param the request object */ - public deleteNamespacedPodTemplate(param: CoreV1ApiDeleteNamespacedPodTemplateRequest, options?: Configuration): Promise { + public deleteNamespacedPodTemplate(param: CoreV1ApiDeleteNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedPodTemplate(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30001,7 +30002,7 @@ export class ObjectCoreV1Api { * delete a ReplicationController * @param param the request object */ - public deleteNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public deleteNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30009,7 +30010,7 @@ export class ObjectCoreV1Api { * delete a ReplicationController * @param param the request object */ - public deleteNamespacedReplicationController(param: CoreV1ApiDeleteNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public deleteNamespacedReplicationController(param: CoreV1ApiDeleteNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedReplicationController(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30017,7 +30018,7 @@ export class ObjectCoreV1Api { * delete a ResourceQuota * @param param the request object */ - public deleteNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public deleteNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30025,7 +30026,7 @@ export class ObjectCoreV1Api { * delete a ResourceQuota * @param param the request object */ - public deleteNamespacedResourceQuota(param: CoreV1ApiDeleteNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public deleteNamespacedResourceQuota(param: CoreV1ApiDeleteNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedResourceQuota(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30033,7 +30034,7 @@ export class ObjectCoreV1Api { * delete a Secret * @param param the request object */ - public deleteNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteNamespacedSecretRequest, options?: Configuration): Promise> { + public deleteNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedSecretWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30041,7 +30042,7 @@ export class ObjectCoreV1Api { * delete a Secret * @param param the request object */ - public deleteNamespacedSecret(param: CoreV1ApiDeleteNamespacedSecretRequest, options?: Configuration): Promise { + public deleteNamespacedSecret(param: CoreV1ApiDeleteNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedSecret(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30049,7 +30050,7 @@ export class ObjectCoreV1Api { * delete a Service * @param param the request object */ - public deleteNamespacedServiceWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceRequest, options?: Configuration): Promise> { + public deleteNamespacedServiceWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedServiceWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30057,7 +30058,7 @@ export class ObjectCoreV1Api { * delete a Service * @param param the request object */ - public deleteNamespacedService(param: CoreV1ApiDeleteNamespacedServiceRequest, options?: Configuration): Promise { + public deleteNamespacedService(param: CoreV1ApiDeleteNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedService(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30065,7 +30066,7 @@ export class ObjectCoreV1Api { * delete a ServiceAccount * @param param the request object */ - public deleteNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public deleteNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30073,7 +30074,7 @@ export class ObjectCoreV1Api { * delete a ServiceAccount * @param param the request object */ - public deleteNamespacedServiceAccount(param: CoreV1ApiDeleteNamespacedServiceAccountRequest, options?: Configuration): Promise { + public deleteNamespacedServiceAccount(param: CoreV1ApiDeleteNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedServiceAccount(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30081,7 +30082,7 @@ export class ObjectCoreV1Api { * delete a Node * @param param the request object */ - public deleteNodeWithHttpInfo(param: CoreV1ApiDeleteNodeRequest, options?: Configuration): Promise> { + public deleteNodeWithHttpInfo(param: CoreV1ApiDeleteNodeRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNodeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30089,7 +30090,7 @@ export class ObjectCoreV1Api { * delete a Node * @param param the request object */ - public deleteNode(param: CoreV1ApiDeleteNodeRequest, options?: Configuration): Promise { + public deleteNode(param: CoreV1ApiDeleteNodeRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNode(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30097,7 +30098,7 @@ export class ObjectCoreV1Api { * delete a PersistentVolume * @param param the request object */ - public deletePersistentVolumeWithHttpInfo(param: CoreV1ApiDeletePersistentVolumeRequest, options?: Configuration): Promise> { + public deletePersistentVolumeWithHttpInfo(param: CoreV1ApiDeletePersistentVolumeRequest, options?: ConfigurationOptions): Promise> { return this.api.deletePersistentVolumeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30105,7 +30106,7 @@ export class ObjectCoreV1Api { * delete a PersistentVolume * @param param the request object */ - public deletePersistentVolume(param: CoreV1ApiDeletePersistentVolumeRequest, options?: Configuration): Promise { + public deletePersistentVolume(param: CoreV1ApiDeletePersistentVolumeRequest, options?: ConfigurationOptions): Promise { return this.api.deletePersistentVolume(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -30113,7 +30114,7 @@ export class ObjectCoreV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CoreV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CoreV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -30121,7 +30122,7 @@ export class ObjectCoreV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: CoreV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: CoreV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -30129,7 +30130,7 @@ export class ObjectCoreV1Api { * list objects of kind ComponentStatus * @param param the request object */ - public listComponentStatusWithHttpInfo(param: CoreV1ApiListComponentStatusRequest = {}, options?: Configuration): Promise> { + public listComponentStatusWithHttpInfo(param: CoreV1ApiListComponentStatusRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listComponentStatusWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30137,7 +30138,7 @@ export class ObjectCoreV1Api { * list objects of kind ComponentStatus * @param param the request object */ - public listComponentStatus(param: CoreV1ApiListComponentStatusRequest = {}, options?: Configuration): Promise { + public listComponentStatus(param: CoreV1ApiListComponentStatusRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listComponentStatus(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30145,7 +30146,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ConfigMap * @param param the request object */ - public listConfigMapForAllNamespacesWithHttpInfo(param: CoreV1ApiListConfigMapForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listConfigMapForAllNamespacesWithHttpInfo(param: CoreV1ApiListConfigMapForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listConfigMapForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30153,7 +30154,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ConfigMap * @param param the request object */ - public listConfigMapForAllNamespaces(param: CoreV1ApiListConfigMapForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listConfigMapForAllNamespaces(param: CoreV1ApiListConfigMapForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listConfigMapForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30161,7 +30162,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Endpoints * @param param the request object */ - public listEndpointsForAllNamespacesWithHttpInfo(param: CoreV1ApiListEndpointsForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listEndpointsForAllNamespacesWithHttpInfo(param: CoreV1ApiListEndpointsForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listEndpointsForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30169,7 +30170,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Endpoints * @param param the request object */ - public listEndpointsForAllNamespaces(param: CoreV1ApiListEndpointsForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listEndpointsForAllNamespaces(param: CoreV1ApiListEndpointsForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listEndpointsForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30177,7 +30178,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Event * @param param the request object */ - public listEventForAllNamespacesWithHttpInfo(param: CoreV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listEventForAllNamespacesWithHttpInfo(param: CoreV1ApiListEventForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listEventForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30185,7 +30186,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Event * @param param the request object */ - public listEventForAllNamespaces(param: CoreV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listEventForAllNamespaces(param: CoreV1ApiListEventForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listEventForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30193,7 +30194,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind LimitRange * @param param the request object */ - public listLimitRangeForAllNamespacesWithHttpInfo(param: CoreV1ApiListLimitRangeForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listLimitRangeForAllNamespacesWithHttpInfo(param: CoreV1ApiListLimitRangeForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listLimitRangeForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30201,7 +30202,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind LimitRange * @param param the request object */ - public listLimitRangeForAllNamespaces(param: CoreV1ApiListLimitRangeForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listLimitRangeForAllNamespaces(param: CoreV1ApiListLimitRangeForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listLimitRangeForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30209,7 +30210,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Namespace * @param param the request object */ - public listNamespaceWithHttpInfo(param: CoreV1ApiListNamespaceRequest = {}, options?: Configuration): Promise> { + public listNamespaceWithHttpInfo(param: CoreV1ApiListNamespaceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listNamespaceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30217,7 +30218,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Namespace * @param param the request object */ - public listNamespace(param: CoreV1ApiListNamespaceRequest = {}, options?: Configuration): Promise { + public listNamespace(param: CoreV1ApiListNamespaceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listNamespace(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30225,7 +30226,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ConfigMap * @param param the request object */ - public listNamespacedConfigMapWithHttpInfo(param: CoreV1ApiListNamespacedConfigMapRequest, options?: Configuration): Promise> { + public listNamespacedConfigMapWithHttpInfo(param: CoreV1ApiListNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedConfigMapWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30233,7 +30234,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ConfigMap * @param param the request object */ - public listNamespacedConfigMap(param: CoreV1ApiListNamespacedConfigMapRequest, options?: Configuration): Promise { + public listNamespacedConfigMap(param: CoreV1ApiListNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedConfigMap(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30241,7 +30242,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Endpoints * @param param the request object */ - public listNamespacedEndpointsWithHttpInfo(param: CoreV1ApiListNamespacedEndpointsRequest, options?: Configuration): Promise> { + public listNamespacedEndpointsWithHttpInfo(param: CoreV1ApiListNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedEndpointsWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30249,7 +30250,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Endpoints * @param param the request object */ - public listNamespacedEndpoints(param: CoreV1ApiListNamespacedEndpointsRequest, options?: Configuration): Promise { + public listNamespacedEndpoints(param: CoreV1ApiListNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedEndpoints(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30257,7 +30258,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Event * @param param the request object */ - public listNamespacedEventWithHttpInfo(param: CoreV1ApiListNamespacedEventRequest, options?: Configuration): Promise> { + public listNamespacedEventWithHttpInfo(param: CoreV1ApiListNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedEventWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30265,7 +30266,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Event * @param param the request object */ - public listNamespacedEvent(param: CoreV1ApiListNamespacedEventRequest, options?: Configuration): Promise { + public listNamespacedEvent(param: CoreV1ApiListNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedEvent(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30273,7 +30274,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind LimitRange * @param param the request object */ - public listNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiListNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public listNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiListNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedLimitRangeWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30281,7 +30282,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind LimitRange * @param param the request object */ - public listNamespacedLimitRange(param: CoreV1ApiListNamespacedLimitRangeRequest, options?: Configuration): Promise { + public listNamespacedLimitRange(param: CoreV1ApiListNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedLimitRange(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30289,7 +30290,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolumeClaim * @param param the request object */ - public listNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiListNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public listNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiListNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30297,7 +30298,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolumeClaim * @param param the request object */ - public listNamespacedPersistentVolumeClaim(param: CoreV1ApiListNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public listNamespacedPersistentVolumeClaim(param: CoreV1ApiListNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedPersistentVolumeClaim(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30305,7 +30306,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Pod * @param param the request object */ - public listNamespacedPodWithHttpInfo(param: CoreV1ApiListNamespacedPodRequest, options?: Configuration): Promise> { + public listNamespacedPodWithHttpInfo(param: CoreV1ApiListNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedPodWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30313,7 +30314,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Pod * @param param the request object */ - public listNamespacedPod(param: CoreV1ApiListNamespacedPodRequest, options?: Configuration): Promise { + public listNamespacedPod(param: CoreV1ApiListNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedPod(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30321,7 +30322,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PodTemplate * @param param the request object */ - public listNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiListNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public listNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiListNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedPodTemplateWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30329,7 +30330,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PodTemplate * @param param the request object */ - public listNamespacedPodTemplate(param: CoreV1ApiListNamespacedPodTemplateRequest, options?: Configuration): Promise { + public listNamespacedPodTemplate(param: CoreV1ApiListNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedPodTemplate(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30337,7 +30338,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ReplicationController * @param param the request object */ - public listNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiListNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public listNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiListNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedReplicationControllerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30345,7 +30346,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ReplicationController * @param param the request object */ - public listNamespacedReplicationController(param: CoreV1ApiListNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public listNamespacedReplicationController(param: CoreV1ApiListNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedReplicationController(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30353,7 +30354,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ResourceQuota * @param param the request object */ - public listNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiListNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public listNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiListNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedResourceQuotaWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30361,7 +30362,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ResourceQuota * @param param the request object */ - public listNamespacedResourceQuota(param: CoreV1ApiListNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public listNamespacedResourceQuota(param: CoreV1ApiListNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedResourceQuota(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30369,7 +30370,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Secret * @param param the request object */ - public listNamespacedSecretWithHttpInfo(param: CoreV1ApiListNamespacedSecretRequest, options?: Configuration): Promise> { + public listNamespacedSecretWithHttpInfo(param: CoreV1ApiListNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedSecretWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30377,7 +30378,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Secret * @param param the request object */ - public listNamespacedSecret(param: CoreV1ApiListNamespacedSecretRequest, options?: Configuration): Promise { + public listNamespacedSecret(param: CoreV1ApiListNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedSecret(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30385,7 +30386,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Service * @param param the request object */ - public listNamespacedServiceWithHttpInfo(param: CoreV1ApiListNamespacedServiceRequest, options?: Configuration): Promise> { + public listNamespacedServiceWithHttpInfo(param: CoreV1ApiListNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedServiceWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30393,7 +30394,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Service * @param param the request object */ - public listNamespacedService(param: CoreV1ApiListNamespacedServiceRequest, options?: Configuration): Promise { + public listNamespacedService(param: CoreV1ApiListNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedService(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30401,7 +30402,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ServiceAccount * @param param the request object */ - public listNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiListNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public listNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiListNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedServiceAccountWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30409,7 +30410,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ServiceAccount * @param param the request object */ - public listNamespacedServiceAccount(param: CoreV1ApiListNamespacedServiceAccountRequest, options?: Configuration): Promise { + public listNamespacedServiceAccount(param: CoreV1ApiListNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedServiceAccount(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30417,7 +30418,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Node * @param param the request object */ - public listNodeWithHttpInfo(param: CoreV1ApiListNodeRequest = {}, options?: Configuration): Promise> { + public listNodeWithHttpInfo(param: CoreV1ApiListNodeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listNodeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30425,7 +30426,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Node * @param param the request object */ - public listNode(param: CoreV1ApiListNodeRequest = {}, options?: Configuration): Promise { + public listNode(param: CoreV1ApiListNodeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listNode(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30433,7 +30434,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolume * @param param the request object */ - public listPersistentVolumeWithHttpInfo(param: CoreV1ApiListPersistentVolumeRequest = {}, options?: Configuration): Promise> { + public listPersistentVolumeWithHttpInfo(param: CoreV1ApiListPersistentVolumeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPersistentVolumeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30441,7 +30442,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolume * @param param the request object */ - public listPersistentVolume(param: CoreV1ApiListPersistentVolumeRequest = {}, options?: Configuration): Promise { + public listPersistentVolume(param: CoreV1ApiListPersistentVolumeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPersistentVolume(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30449,7 +30450,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolumeClaim * @param param the request object */ - public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(param: CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(param: CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30457,7 +30458,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PersistentVolumeClaim * @param param the request object */ - public listPersistentVolumeClaimForAllNamespaces(param: CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listPersistentVolumeClaimForAllNamespaces(param: CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPersistentVolumeClaimForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30465,7 +30466,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Pod * @param param the request object */ - public listPodForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listPodForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPodForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30473,7 +30474,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Pod * @param param the request object */ - public listPodForAllNamespaces(param: CoreV1ApiListPodForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listPodForAllNamespaces(param: CoreV1ApiListPodForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPodForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30481,7 +30482,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PodTemplate * @param param the request object */ - public listPodTemplateForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listPodTemplateForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPodTemplateForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30489,7 +30490,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind PodTemplate * @param param the request object */ - public listPodTemplateForAllNamespaces(param: CoreV1ApiListPodTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listPodTemplateForAllNamespaces(param: CoreV1ApiListPodTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPodTemplateForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30497,7 +30498,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ReplicationController * @param param the request object */ - public listReplicationControllerForAllNamespacesWithHttpInfo(param: CoreV1ApiListReplicationControllerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listReplicationControllerForAllNamespacesWithHttpInfo(param: CoreV1ApiListReplicationControllerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listReplicationControllerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30505,7 +30506,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ReplicationController * @param param the request object */ - public listReplicationControllerForAllNamespaces(param: CoreV1ApiListReplicationControllerForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listReplicationControllerForAllNamespaces(param: CoreV1ApiListReplicationControllerForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listReplicationControllerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30513,7 +30514,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ResourceQuota * @param param the request object */ - public listResourceQuotaForAllNamespacesWithHttpInfo(param: CoreV1ApiListResourceQuotaForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listResourceQuotaForAllNamespacesWithHttpInfo(param: CoreV1ApiListResourceQuotaForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceQuotaForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30521,7 +30522,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ResourceQuota * @param param the request object */ - public listResourceQuotaForAllNamespaces(param: CoreV1ApiListResourceQuotaForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listResourceQuotaForAllNamespaces(param: CoreV1ApiListResourceQuotaForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceQuotaForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30529,7 +30530,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Secret * @param param the request object */ - public listSecretForAllNamespacesWithHttpInfo(param: CoreV1ApiListSecretForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listSecretForAllNamespacesWithHttpInfo(param: CoreV1ApiListSecretForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listSecretForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30537,7 +30538,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Secret * @param param the request object */ - public listSecretForAllNamespaces(param: CoreV1ApiListSecretForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listSecretForAllNamespaces(param: CoreV1ApiListSecretForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listSecretForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30545,7 +30546,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ServiceAccount * @param param the request object */ - public listServiceAccountForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceAccountForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listServiceAccountForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceAccountForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listServiceAccountForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30553,7 +30554,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind ServiceAccount * @param param the request object */ - public listServiceAccountForAllNamespaces(param: CoreV1ApiListServiceAccountForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listServiceAccountForAllNamespaces(param: CoreV1ApiListServiceAccountForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listServiceAccountForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30561,7 +30562,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Service * @param param the request object */ - public listServiceForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listServiceForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listServiceForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30569,7 +30570,7 @@ export class ObjectCoreV1Api { * list or watch objects of kind Service * @param param the request object */ - public listServiceForAllNamespaces(param: CoreV1ApiListServiceForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listServiceForAllNamespaces(param: CoreV1ApiListServiceForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listServiceForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -30577,7 +30578,7 @@ export class ObjectCoreV1Api { * partially update the specified Namespace * @param param the request object */ - public patchNamespaceWithHttpInfo(param: CoreV1ApiPatchNamespaceRequest, options?: Configuration): Promise> { + public patchNamespaceWithHttpInfo(param: CoreV1ApiPatchNamespaceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespaceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30585,7 +30586,7 @@ export class ObjectCoreV1Api { * partially update the specified Namespace * @param param the request object */ - public patchNamespace(param: CoreV1ApiPatchNamespaceRequest, options?: Configuration): Promise { + public patchNamespace(param: CoreV1ApiPatchNamespaceRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespace(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30593,7 +30594,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Namespace * @param param the request object */ - public patchNamespaceStatusWithHttpInfo(param: CoreV1ApiPatchNamespaceStatusRequest, options?: Configuration): Promise> { + public patchNamespaceStatusWithHttpInfo(param: CoreV1ApiPatchNamespaceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespaceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30601,7 +30602,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Namespace * @param param the request object */ - public patchNamespaceStatus(param: CoreV1ApiPatchNamespaceStatusRequest, options?: Configuration): Promise { + public patchNamespaceStatus(param: CoreV1ApiPatchNamespaceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespaceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30609,7 +30610,7 @@ export class ObjectCoreV1Api { * partially update the specified ConfigMap * @param param the request object */ - public patchNamespacedConfigMapWithHttpInfo(param: CoreV1ApiPatchNamespacedConfigMapRequest, options?: Configuration): Promise> { + public patchNamespacedConfigMapWithHttpInfo(param: CoreV1ApiPatchNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30617,7 +30618,7 @@ export class ObjectCoreV1Api { * partially update the specified ConfigMap * @param param the request object */ - public patchNamespacedConfigMap(param: CoreV1ApiPatchNamespacedConfigMapRequest, options?: Configuration): Promise { + public patchNamespacedConfigMap(param: CoreV1ApiPatchNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedConfigMap(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30625,7 +30626,7 @@ export class ObjectCoreV1Api { * partially update the specified Endpoints * @param param the request object */ - public patchNamespacedEndpointsWithHttpInfo(param: CoreV1ApiPatchNamespacedEndpointsRequest, options?: Configuration): Promise> { + public patchNamespacedEndpointsWithHttpInfo(param: CoreV1ApiPatchNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30633,7 +30634,7 @@ export class ObjectCoreV1Api { * partially update the specified Endpoints * @param param the request object */ - public patchNamespacedEndpoints(param: CoreV1ApiPatchNamespacedEndpointsRequest, options?: Configuration): Promise { + public patchNamespacedEndpoints(param: CoreV1ApiPatchNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedEndpoints(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30641,7 +30642,7 @@ export class ObjectCoreV1Api { * partially update the specified Event * @param param the request object */ - public patchNamespacedEventWithHttpInfo(param: CoreV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise> { + public patchNamespacedEventWithHttpInfo(param: CoreV1ApiPatchNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30649,7 +30650,7 @@ export class ObjectCoreV1Api { * partially update the specified Event * @param param the request object */ - public patchNamespacedEvent(param: CoreV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise { + public patchNamespacedEvent(param: CoreV1ApiPatchNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30657,7 +30658,7 @@ export class ObjectCoreV1Api { * partially update the specified LimitRange * @param param the request object */ - public patchNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiPatchNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public patchNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiPatchNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30665,7 +30666,7 @@ export class ObjectCoreV1Api { * partially update the specified LimitRange * @param param the request object */ - public patchNamespacedLimitRange(param: CoreV1ApiPatchNamespacedLimitRangeRequest, options?: Configuration): Promise { + public patchNamespacedLimitRange(param: CoreV1ApiPatchNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedLimitRange(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30673,7 +30674,7 @@ export class ObjectCoreV1Api { * partially update the specified PersistentVolumeClaim * @param param the request object */ - public patchNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public patchNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30681,7 +30682,7 @@ export class ObjectCoreV1Api { * partially update the specified PersistentVolumeClaim * @param param the request object */ - public patchNamespacedPersistentVolumeClaim(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public patchNamespacedPersistentVolumeClaim(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPersistentVolumeClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30689,7 +30690,7 @@ export class ObjectCoreV1Api { * partially update status of the specified PersistentVolumeClaim * @param param the request object */ - public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30697,7 +30698,7 @@ export class ObjectCoreV1Api { * partially update status of the specified PersistentVolumeClaim * @param param the request object */ - public patchNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise { + public patchNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30705,7 +30706,7 @@ export class ObjectCoreV1Api { * partially update the specified Pod * @param param the request object */ - public patchNamespacedPodWithHttpInfo(param: CoreV1ApiPatchNamespacedPodRequest, options?: Configuration): Promise> { + public patchNamespacedPodWithHttpInfo(param: CoreV1ApiPatchNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30713,7 +30714,7 @@ export class ObjectCoreV1Api { * partially update the specified Pod * @param param the request object */ - public patchNamespacedPod(param: CoreV1ApiPatchNamespacedPodRequest, options?: Configuration): Promise { + public patchNamespacedPod(param: CoreV1ApiPatchNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPod(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30721,7 +30722,7 @@ export class ObjectCoreV1Api { * partially update ephemeralcontainers of the specified Pod * @param param the request object */ - public patchNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + public patchNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30729,7 +30730,7 @@ export class ObjectCoreV1Api { * partially update ephemeralcontainers of the specified Pod * @param param the request object */ - public patchNamespacedPodEphemeralcontainers(param: CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise { + public patchNamespacedPodEphemeralcontainers(param: CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodEphemeralcontainers(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30737,7 +30738,7 @@ export class ObjectCoreV1Api { * partially update resize of the specified Pod * @param param the request object */ - public patchNamespacedPodResizeWithHttpInfo(param: CoreV1ApiPatchNamespacedPodResizeRequest, options?: Configuration): Promise> { + public patchNamespacedPodResizeWithHttpInfo(param: CoreV1ApiPatchNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodResizeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30745,7 +30746,7 @@ export class ObjectCoreV1Api { * partially update resize of the specified Pod * @param param the request object */ - public patchNamespacedPodResize(param: CoreV1ApiPatchNamespacedPodResizeRequest, options?: Configuration): Promise { + public patchNamespacedPodResize(param: CoreV1ApiPatchNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodResize(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30753,7 +30754,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Pod * @param param the request object */ - public patchNamespacedPodStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPodStatusRequest, options?: Configuration): Promise> { + public patchNamespacedPodStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30761,7 +30762,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Pod * @param param the request object */ - public patchNamespacedPodStatus(param: CoreV1ApiPatchNamespacedPodStatusRequest, options?: Configuration): Promise { + public patchNamespacedPodStatus(param: CoreV1ApiPatchNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30769,7 +30770,7 @@ export class ObjectCoreV1Api { * partially update the specified PodTemplate * @param param the request object */ - public patchNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiPatchNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public patchNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiPatchNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30777,7 +30778,7 @@ export class ObjectCoreV1Api { * partially update the specified PodTemplate * @param param the request object */ - public patchNamespacedPodTemplate(param: CoreV1ApiPatchNamespacedPodTemplateRequest, options?: Configuration): Promise { + public patchNamespacedPodTemplate(param: CoreV1ApiPatchNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30785,7 +30786,7 @@ export class ObjectCoreV1Api { * partially update the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public patchNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30793,7 +30794,7 @@ export class ObjectCoreV1Api { * partially update the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationController(param: CoreV1ApiPatchNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public patchNamespacedReplicationController(param: CoreV1ApiPatchNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicationController(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30801,7 +30802,7 @@ export class ObjectCoreV1Api { * partially update scale of the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + public patchNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30809,7 +30810,7 @@ export class ObjectCoreV1Api { * partially update scale of the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationControllerScale(param: CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise { + public patchNamespacedReplicationControllerScale(param: CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicationControllerScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30817,7 +30818,7 @@ export class ObjectCoreV1Api { * partially update status of the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + public patchNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30825,7 +30826,7 @@ export class ObjectCoreV1Api { * partially update status of the specified ReplicationController * @param param the request object */ - public patchNamespacedReplicationControllerStatus(param: CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise { + public patchNamespacedReplicationControllerStatus(param: CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedReplicationControllerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30833,7 +30834,7 @@ export class ObjectCoreV1Api { * partially update the specified ResourceQuota * @param param the request object */ - public patchNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public patchNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30841,7 +30842,7 @@ export class ObjectCoreV1Api { * partially update the specified ResourceQuota * @param param the request object */ - public patchNamespacedResourceQuota(param: CoreV1ApiPatchNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public patchNamespacedResourceQuota(param: CoreV1ApiPatchNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceQuota(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30849,7 +30850,7 @@ export class ObjectCoreV1Api { * partially update status of the specified ResourceQuota * @param param the request object */ - public patchNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + public patchNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30857,7 +30858,7 @@ export class ObjectCoreV1Api { * partially update status of the specified ResourceQuota * @param param the request object */ - public patchNamespacedResourceQuotaStatus(param: CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise { + public patchNamespacedResourceQuotaStatus(param: CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceQuotaStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30865,7 +30866,7 @@ export class ObjectCoreV1Api { * partially update the specified Secret * @param param the request object */ - public patchNamespacedSecretWithHttpInfo(param: CoreV1ApiPatchNamespacedSecretRequest, options?: Configuration): Promise> { + public patchNamespacedSecretWithHttpInfo(param: CoreV1ApiPatchNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedSecretWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30873,7 +30874,7 @@ export class ObjectCoreV1Api { * partially update the specified Secret * @param param the request object */ - public patchNamespacedSecret(param: CoreV1ApiPatchNamespacedSecretRequest, options?: Configuration): Promise { + public patchNamespacedSecret(param: CoreV1ApiPatchNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedSecret(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30881,7 +30882,7 @@ export class ObjectCoreV1Api { * partially update the specified Service * @param param the request object */ - public patchNamespacedServiceWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceRequest, options?: Configuration): Promise> { + public patchNamespacedServiceWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedServiceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30889,7 +30890,7 @@ export class ObjectCoreV1Api { * partially update the specified Service * @param param the request object */ - public patchNamespacedService(param: CoreV1ApiPatchNamespacedServiceRequest, options?: Configuration): Promise { + public patchNamespacedService(param: CoreV1ApiPatchNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedService(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30897,7 +30898,7 @@ export class ObjectCoreV1Api { * partially update the specified ServiceAccount * @param param the request object */ - public patchNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public patchNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30905,7 +30906,7 @@ export class ObjectCoreV1Api { * partially update the specified ServiceAccount * @param param the request object */ - public patchNamespacedServiceAccount(param: CoreV1ApiPatchNamespacedServiceAccountRequest, options?: Configuration): Promise { + public patchNamespacedServiceAccount(param: CoreV1ApiPatchNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedServiceAccount(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30913,7 +30914,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Service * @param param the request object */ - public patchNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceStatusRequest, options?: Configuration): Promise> { + public patchNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30921,7 +30922,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Service * @param param the request object */ - public patchNamespacedServiceStatus(param: CoreV1ApiPatchNamespacedServiceStatusRequest, options?: Configuration): Promise { + public patchNamespacedServiceStatus(param: CoreV1ApiPatchNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedServiceStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30929,7 +30930,7 @@ export class ObjectCoreV1Api { * partially update the specified Node * @param param the request object */ - public patchNodeWithHttpInfo(param: CoreV1ApiPatchNodeRequest, options?: Configuration): Promise> { + public patchNodeWithHttpInfo(param: CoreV1ApiPatchNodeRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30937,7 +30938,7 @@ export class ObjectCoreV1Api { * partially update the specified Node * @param param the request object */ - public patchNode(param: CoreV1ApiPatchNodeRequest, options?: Configuration): Promise { + public patchNode(param: CoreV1ApiPatchNodeRequest, options?: ConfigurationOptions): Promise { return this.api.patchNode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30945,7 +30946,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Node * @param param the request object */ - public patchNodeStatusWithHttpInfo(param: CoreV1ApiPatchNodeStatusRequest, options?: Configuration): Promise> { + public patchNodeStatusWithHttpInfo(param: CoreV1ApiPatchNodeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNodeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30953,7 +30954,7 @@ export class ObjectCoreV1Api { * partially update status of the specified Node * @param param the request object */ - public patchNodeStatus(param: CoreV1ApiPatchNodeStatusRequest, options?: Configuration): Promise { + public patchNodeStatus(param: CoreV1ApiPatchNodeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNodeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30961,7 +30962,7 @@ export class ObjectCoreV1Api { * partially update the specified PersistentVolume * @param param the request object */ - public patchPersistentVolumeWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeRequest, options?: Configuration): Promise> { + public patchPersistentVolumeWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeRequest, options?: ConfigurationOptions): Promise> { return this.api.patchPersistentVolumeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30969,7 +30970,7 @@ export class ObjectCoreV1Api { * partially update the specified PersistentVolume * @param param the request object */ - public patchPersistentVolume(param: CoreV1ApiPatchPersistentVolumeRequest, options?: Configuration): Promise { + public patchPersistentVolume(param: CoreV1ApiPatchPersistentVolumeRequest, options?: ConfigurationOptions): Promise { return this.api.patchPersistentVolume(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30977,7 +30978,7 @@ export class ObjectCoreV1Api { * partially update status of the specified PersistentVolume * @param param the request object */ - public patchPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeStatusRequest, options?: Configuration): Promise> { + public patchPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchPersistentVolumeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30985,7 +30986,7 @@ export class ObjectCoreV1Api { * partially update status of the specified PersistentVolume * @param param the request object */ - public patchPersistentVolumeStatus(param: CoreV1ApiPatchPersistentVolumeStatusRequest, options?: Configuration): Promise { + public patchPersistentVolumeStatus(param: CoreV1ApiPatchPersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchPersistentVolumeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -30993,7 +30994,7 @@ export class ObjectCoreV1Api { * read the specified ComponentStatus * @param param the request object */ - public readComponentStatusWithHttpInfo(param: CoreV1ApiReadComponentStatusRequest, options?: Configuration): Promise> { + public readComponentStatusWithHttpInfo(param: CoreV1ApiReadComponentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readComponentStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31001,7 +31002,7 @@ export class ObjectCoreV1Api { * read the specified ComponentStatus * @param param the request object */ - public readComponentStatus(param: CoreV1ApiReadComponentStatusRequest, options?: Configuration): Promise { + public readComponentStatus(param: CoreV1ApiReadComponentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readComponentStatus(param.name, param.pretty, options).toPromise(); } @@ -31009,7 +31010,7 @@ export class ObjectCoreV1Api { * read the specified Namespace * @param param the request object */ - public readNamespaceWithHttpInfo(param: CoreV1ApiReadNamespaceRequest, options?: Configuration): Promise> { + public readNamespaceWithHttpInfo(param: CoreV1ApiReadNamespaceRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespaceWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31017,7 +31018,7 @@ export class ObjectCoreV1Api { * read the specified Namespace * @param param the request object */ - public readNamespace(param: CoreV1ApiReadNamespaceRequest, options?: Configuration): Promise { + public readNamespace(param: CoreV1ApiReadNamespaceRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespace(param.name, param.pretty, options).toPromise(); } @@ -31025,7 +31026,7 @@ export class ObjectCoreV1Api { * read status of the specified Namespace * @param param the request object */ - public readNamespaceStatusWithHttpInfo(param: CoreV1ApiReadNamespaceStatusRequest, options?: Configuration): Promise> { + public readNamespaceStatusWithHttpInfo(param: CoreV1ApiReadNamespaceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespaceStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31033,7 +31034,7 @@ export class ObjectCoreV1Api { * read status of the specified Namespace * @param param the request object */ - public readNamespaceStatus(param: CoreV1ApiReadNamespaceStatusRequest, options?: Configuration): Promise { + public readNamespaceStatus(param: CoreV1ApiReadNamespaceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespaceStatus(param.name, param.pretty, options).toPromise(); } @@ -31041,7 +31042,7 @@ export class ObjectCoreV1Api { * read the specified ConfigMap * @param param the request object */ - public readNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReadNamespacedConfigMapRequest, options?: Configuration): Promise> { + public readNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReadNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31049,7 +31050,7 @@ export class ObjectCoreV1Api { * read the specified ConfigMap * @param param the request object */ - public readNamespacedConfigMap(param: CoreV1ApiReadNamespacedConfigMapRequest, options?: Configuration): Promise { + public readNamespacedConfigMap(param: CoreV1ApiReadNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedConfigMap(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31057,7 +31058,7 @@ export class ObjectCoreV1Api { * read the specified Endpoints * @param param the request object */ - public readNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReadNamespacedEndpointsRequest, options?: Configuration): Promise> { + public readNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReadNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31065,7 +31066,7 @@ export class ObjectCoreV1Api { * read the specified Endpoints * @param param the request object */ - public readNamespacedEndpoints(param: CoreV1ApiReadNamespacedEndpointsRequest, options?: Configuration): Promise { + public readNamespacedEndpoints(param: CoreV1ApiReadNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedEndpoints(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31073,7 +31074,7 @@ export class ObjectCoreV1Api { * read the specified Event * @param param the request object */ - public readNamespacedEventWithHttpInfo(param: CoreV1ApiReadNamespacedEventRequest, options?: Configuration): Promise> { + public readNamespacedEventWithHttpInfo(param: CoreV1ApiReadNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31081,7 +31082,7 @@ export class ObjectCoreV1Api { * read the specified Event * @param param the request object */ - public readNamespacedEvent(param: CoreV1ApiReadNamespacedEventRequest, options?: Configuration): Promise { + public readNamespacedEvent(param: CoreV1ApiReadNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedEvent(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31089,7 +31090,7 @@ export class ObjectCoreV1Api { * read the specified LimitRange * @param param the request object */ - public readNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReadNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public readNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReadNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31097,7 +31098,7 @@ export class ObjectCoreV1Api { * read the specified LimitRange * @param param the request object */ - public readNamespacedLimitRange(param: CoreV1ApiReadNamespacedLimitRangeRequest, options?: Configuration): Promise { + public readNamespacedLimitRange(param: CoreV1ApiReadNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedLimitRange(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31105,7 +31106,7 @@ export class ObjectCoreV1Api { * read the specified PersistentVolumeClaim * @param param the request object */ - public readNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public readNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31113,7 +31114,7 @@ export class ObjectCoreV1Api { * read the specified PersistentVolumeClaim * @param param the request object */ - public readNamespacedPersistentVolumeClaim(param: CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public readNamespacedPersistentVolumeClaim(param: CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPersistentVolumeClaim(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31121,7 +31122,7 @@ export class ObjectCoreV1Api { * read status of the specified PersistentVolumeClaim * @param param the request object */ - public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31129,7 +31130,7 @@ export class ObjectCoreV1Api { * read status of the specified PersistentVolumeClaim * @param param the request object */ - public readNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise { + public readNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31137,7 +31138,7 @@ export class ObjectCoreV1Api { * read the specified Pod * @param param the request object */ - public readNamespacedPodWithHttpInfo(param: CoreV1ApiReadNamespacedPodRequest, options?: Configuration): Promise> { + public readNamespacedPodWithHttpInfo(param: CoreV1ApiReadNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31145,7 +31146,7 @@ export class ObjectCoreV1Api { * read the specified Pod * @param param the request object */ - public readNamespacedPod(param: CoreV1ApiReadNamespacedPodRequest, options?: Configuration): Promise { + public readNamespacedPod(param: CoreV1ApiReadNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPod(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31153,7 +31154,7 @@ export class ObjectCoreV1Api { * read ephemeralcontainers of the specified Pod * @param param the request object */ - public readNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + public readNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31161,7 +31162,7 @@ export class ObjectCoreV1Api { * read ephemeralcontainers of the specified Pod * @param param the request object */ - public readNamespacedPodEphemeralcontainers(param: CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise { + public readNamespacedPodEphemeralcontainers(param: CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodEphemeralcontainers(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31169,7 +31170,7 @@ export class ObjectCoreV1Api { * read log of the specified Pod * @param param the request object */ - public readNamespacedPodLogWithHttpInfo(param: CoreV1ApiReadNamespacedPodLogRequest, options?: Configuration): Promise> { + public readNamespacedPodLogWithHttpInfo(param: CoreV1ApiReadNamespacedPodLogRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodLogWithHttpInfo(param.name, param.namespace, param.container, param.follow, param.insecureSkipTLSVerifyBackend, param.limitBytes, param.pretty, param.previous, param.sinceSeconds, param.stream, param.tailLines, param.timestamps, options).toPromise(); } @@ -31177,7 +31178,7 @@ export class ObjectCoreV1Api { * read log of the specified Pod * @param param the request object */ - public readNamespacedPodLog(param: CoreV1ApiReadNamespacedPodLogRequest, options?: Configuration): Promise { + public readNamespacedPodLog(param: CoreV1ApiReadNamespacedPodLogRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodLog(param.name, param.namespace, param.container, param.follow, param.insecureSkipTLSVerifyBackend, param.limitBytes, param.pretty, param.previous, param.sinceSeconds, param.stream, param.tailLines, param.timestamps, options).toPromise(); } @@ -31185,7 +31186,7 @@ export class ObjectCoreV1Api { * read resize of the specified Pod * @param param the request object */ - public readNamespacedPodResizeWithHttpInfo(param: CoreV1ApiReadNamespacedPodResizeRequest, options?: Configuration): Promise> { + public readNamespacedPodResizeWithHttpInfo(param: CoreV1ApiReadNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodResizeWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31193,7 +31194,7 @@ export class ObjectCoreV1Api { * read resize of the specified Pod * @param param the request object */ - public readNamespacedPodResize(param: CoreV1ApiReadNamespacedPodResizeRequest, options?: Configuration): Promise { + public readNamespacedPodResize(param: CoreV1ApiReadNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodResize(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31201,7 +31202,7 @@ export class ObjectCoreV1Api { * read status of the specified Pod * @param param the request object */ - public readNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPodStatusRequest, options?: Configuration): Promise> { + public readNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31209,7 +31210,7 @@ export class ObjectCoreV1Api { * read status of the specified Pod * @param param the request object */ - public readNamespacedPodStatus(param: CoreV1ApiReadNamespacedPodStatusRequest, options?: Configuration): Promise { + public readNamespacedPodStatus(param: CoreV1ApiReadNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31217,7 +31218,7 @@ export class ObjectCoreV1Api { * read the specified PodTemplate * @param param the request object */ - public readNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReadNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public readNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReadNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31225,7 +31226,7 @@ export class ObjectCoreV1Api { * read the specified PodTemplate * @param param the request object */ - public readNamespacedPodTemplate(param: CoreV1ApiReadNamespacedPodTemplateRequest, options?: Configuration): Promise { + public readNamespacedPodTemplate(param: CoreV1ApiReadNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodTemplate(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31233,7 +31234,7 @@ export class ObjectCoreV1Api { * read the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public readNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31241,7 +31242,7 @@ export class ObjectCoreV1Api { * read the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationController(param: CoreV1ApiReadNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public readNamespacedReplicationController(param: CoreV1ApiReadNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicationController(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31249,7 +31250,7 @@ export class ObjectCoreV1Api { * read scale of the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + public readNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31257,7 +31258,7 @@ export class ObjectCoreV1Api { * read scale of the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationControllerScale(param: CoreV1ApiReadNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise { + public readNamespacedReplicationControllerScale(param: CoreV1ApiReadNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicationControllerScale(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31265,7 +31266,7 @@ export class ObjectCoreV1Api { * read status of the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + public readNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31273,7 +31274,7 @@ export class ObjectCoreV1Api { * read status of the specified ReplicationController * @param param the request object */ - public readNamespacedReplicationControllerStatus(param: CoreV1ApiReadNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise { + public readNamespacedReplicationControllerStatus(param: CoreV1ApiReadNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedReplicationControllerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31281,7 +31282,7 @@ export class ObjectCoreV1Api { * read the specified ResourceQuota * @param param the request object */ - public readNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public readNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31289,7 +31290,7 @@ export class ObjectCoreV1Api { * read the specified ResourceQuota * @param param the request object */ - public readNamespacedResourceQuota(param: CoreV1ApiReadNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public readNamespacedResourceQuota(param: CoreV1ApiReadNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceQuota(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31297,7 +31298,7 @@ export class ObjectCoreV1Api { * read status of the specified ResourceQuota * @param param the request object */ - public readNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + public readNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31305,7 +31306,7 @@ export class ObjectCoreV1Api { * read status of the specified ResourceQuota * @param param the request object */ - public readNamespacedResourceQuotaStatus(param: CoreV1ApiReadNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise { + public readNamespacedResourceQuotaStatus(param: CoreV1ApiReadNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceQuotaStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31313,7 +31314,7 @@ export class ObjectCoreV1Api { * read the specified Secret * @param param the request object */ - public readNamespacedSecretWithHttpInfo(param: CoreV1ApiReadNamespacedSecretRequest, options?: Configuration): Promise> { + public readNamespacedSecretWithHttpInfo(param: CoreV1ApiReadNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedSecretWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31321,7 +31322,7 @@ export class ObjectCoreV1Api { * read the specified Secret * @param param the request object */ - public readNamespacedSecret(param: CoreV1ApiReadNamespacedSecretRequest, options?: Configuration): Promise { + public readNamespacedSecret(param: CoreV1ApiReadNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedSecret(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31329,7 +31330,7 @@ export class ObjectCoreV1Api { * read the specified Service * @param param the request object */ - public readNamespacedServiceWithHttpInfo(param: CoreV1ApiReadNamespacedServiceRequest, options?: Configuration): Promise> { + public readNamespacedServiceWithHttpInfo(param: CoreV1ApiReadNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedServiceWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31337,7 +31338,7 @@ export class ObjectCoreV1Api { * read the specified Service * @param param the request object */ - public readNamespacedService(param: CoreV1ApiReadNamespacedServiceRequest, options?: Configuration): Promise { + public readNamespacedService(param: CoreV1ApiReadNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedService(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31345,7 +31346,7 @@ export class ObjectCoreV1Api { * read the specified ServiceAccount * @param param the request object */ - public readNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReadNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public readNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReadNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31353,7 +31354,7 @@ export class ObjectCoreV1Api { * read the specified ServiceAccount * @param param the request object */ - public readNamespacedServiceAccount(param: CoreV1ApiReadNamespacedServiceAccountRequest, options?: Configuration): Promise { + public readNamespacedServiceAccount(param: CoreV1ApiReadNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedServiceAccount(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31361,7 +31362,7 @@ export class ObjectCoreV1Api { * read status of the specified Service * @param param the request object */ - public readNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReadNamespacedServiceStatusRequest, options?: Configuration): Promise> { + public readNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReadNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31369,7 +31370,7 @@ export class ObjectCoreV1Api { * read status of the specified Service * @param param the request object */ - public readNamespacedServiceStatus(param: CoreV1ApiReadNamespacedServiceStatusRequest, options?: Configuration): Promise { + public readNamespacedServiceStatus(param: CoreV1ApiReadNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedServiceStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -31377,7 +31378,7 @@ export class ObjectCoreV1Api { * read the specified Node * @param param the request object */ - public readNodeWithHttpInfo(param: CoreV1ApiReadNodeRequest, options?: Configuration): Promise> { + public readNodeWithHttpInfo(param: CoreV1ApiReadNodeRequest, options?: ConfigurationOptions): Promise> { return this.api.readNodeWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31385,7 +31386,7 @@ export class ObjectCoreV1Api { * read the specified Node * @param param the request object */ - public readNode(param: CoreV1ApiReadNodeRequest, options?: Configuration): Promise { + public readNode(param: CoreV1ApiReadNodeRequest, options?: ConfigurationOptions): Promise { return this.api.readNode(param.name, param.pretty, options).toPromise(); } @@ -31393,7 +31394,7 @@ export class ObjectCoreV1Api { * read status of the specified Node * @param param the request object */ - public readNodeStatusWithHttpInfo(param: CoreV1ApiReadNodeStatusRequest, options?: Configuration): Promise> { + public readNodeStatusWithHttpInfo(param: CoreV1ApiReadNodeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNodeStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31401,7 +31402,7 @@ export class ObjectCoreV1Api { * read status of the specified Node * @param param the request object */ - public readNodeStatus(param: CoreV1ApiReadNodeStatusRequest, options?: Configuration): Promise { + public readNodeStatus(param: CoreV1ApiReadNodeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNodeStatus(param.name, param.pretty, options).toPromise(); } @@ -31409,7 +31410,7 @@ export class ObjectCoreV1Api { * read the specified PersistentVolume * @param param the request object */ - public readPersistentVolumeWithHttpInfo(param: CoreV1ApiReadPersistentVolumeRequest, options?: Configuration): Promise> { + public readPersistentVolumeWithHttpInfo(param: CoreV1ApiReadPersistentVolumeRequest, options?: ConfigurationOptions): Promise> { return this.api.readPersistentVolumeWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31417,7 +31418,7 @@ export class ObjectCoreV1Api { * read the specified PersistentVolume * @param param the request object */ - public readPersistentVolume(param: CoreV1ApiReadPersistentVolumeRequest, options?: Configuration): Promise { + public readPersistentVolume(param: CoreV1ApiReadPersistentVolumeRequest, options?: ConfigurationOptions): Promise { return this.api.readPersistentVolume(param.name, param.pretty, options).toPromise(); } @@ -31425,7 +31426,7 @@ export class ObjectCoreV1Api { * read status of the specified PersistentVolume * @param param the request object */ - public readPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReadPersistentVolumeStatusRequest, options?: Configuration): Promise> { + public readPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReadPersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readPersistentVolumeStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -31433,7 +31434,7 @@ export class ObjectCoreV1Api { * read status of the specified PersistentVolume * @param param the request object */ - public readPersistentVolumeStatus(param: CoreV1ApiReadPersistentVolumeStatusRequest, options?: Configuration): Promise { + public readPersistentVolumeStatus(param: CoreV1ApiReadPersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readPersistentVolumeStatus(param.name, param.pretty, options).toPromise(); } @@ -31441,7 +31442,7 @@ export class ObjectCoreV1Api { * replace the specified Namespace * @param param the request object */ - public replaceNamespaceWithHttpInfo(param: CoreV1ApiReplaceNamespaceRequest, options?: Configuration): Promise> { + public replaceNamespaceWithHttpInfo(param: CoreV1ApiReplaceNamespaceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespaceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31449,7 +31450,7 @@ export class ObjectCoreV1Api { * replace the specified Namespace * @param param the request object */ - public replaceNamespace(param: CoreV1ApiReplaceNamespaceRequest, options?: Configuration): Promise { + public replaceNamespace(param: CoreV1ApiReplaceNamespaceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespace(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31457,7 +31458,7 @@ export class ObjectCoreV1Api { * replace finalize of the specified Namespace * @param param the request object */ - public replaceNamespaceFinalizeWithHttpInfo(param: CoreV1ApiReplaceNamespaceFinalizeRequest, options?: Configuration): Promise> { + public replaceNamespaceFinalizeWithHttpInfo(param: CoreV1ApiReplaceNamespaceFinalizeRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespaceFinalizeWithHttpInfo(param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -31465,7 +31466,7 @@ export class ObjectCoreV1Api { * replace finalize of the specified Namespace * @param param the request object */ - public replaceNamespaceFinalize(param: CoreV1ApiReplaceNamespaceFinalizeRequest, options?: Configuration): Promise { + public replaceNamespaceFinalize(param: CoreV1ApiReplaceNamespaceFinalizeRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespaceFinalize(param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.pretty, options).toPromise(); } @@ -31473,7 +31474,7 @@ export class ObjectCoreV1Api { * replace status of the specified Namespace * @param param the request object */ - public replaceNamespaceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespaceStatusRequest, options?: Configuration): Promise> { + public replaceNamespaceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespaceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespaceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31481,7 +31482,7 @@ export class ObjectCoreV1Api { * replace status of the specified Namespace * @param param the request object */ - public replaceNamespaceStatus(param: CoreV1ApiReplaceNamespaceStatusRequest, options?: Configuration): Promise { + public replaceNamespaceStatus(param: CoreV1ApiReplaceNamespaceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespaceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31489,7 +31490,7 @@ export class ObjectCoreV1Api { * replace the specified ConfigMap * @param param the request object */ - public replaceNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReplaceNamespacedConfigMapRequest, options?: Configuration): Promise> { + public replaceNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReplaceNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31497,7 +31498,7 @@ export class ObjectCoreV1Api { * replace the specified ConfigMap * @param param the request object */ - public replaceNamespacedConfigMap(param: CoreV1ApiReplaceNamespacedConfigMapRequest, options?: Configuration): Promise { + public replaceNamespacedConfigMap(param: CoreV1ApiReplaceNamespacedConfigMapRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedConfigMap(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31505,7 +31506,7 @@ export class ObjectCoreV1Api { * replace the specified Endpoints * @param param the request object */ - public replaceNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReplaceNamespacedEndpointsRequest, options?: Configuration): Promise> { + public replaceNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReplaceNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31513,7 +31514,7 @@ export class ObjectCoreV1Api { * replace the specified Endpoints * @param param the request object */ - public replaceNamespacedEndpoints(param: CoreV1ApiReplaceNamespacedEndpointsRequest, options?: Configuration): Promise { + public replaceNamespacedEndpoints(param: CoreV1ApiReplaceNamespacedEndpointsRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedEndpoints(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31521,7 +31522,7 @@ export class ObjectCoreV1Api { * replace the specified Event * @param param the request object */ - public replaceNamespacedEventWithHttpInfo(param: CoreV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise> { + public replaceNamespacedEventWithHttpInfo(param: CoreV1ApiReplaceNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31529,7 +31530,7 @@ export class ObjectCoreV1Api { * replace the specified Event * @param param the request object */ - public replaceNamespacedEvent(param: CoreV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise { + public replaceNamespacedEvent(param: CoreV1ApiReplaceNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31537,7 +31538,7 @@ export class ObjectCoreV1Api { * replace the specified LimitRange * @param param the request object */ - public replaceNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReplaceNamespacedLimitRangeRequest, options?: Configuration): Promise> { + public replaceNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReplaceNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31545,7 +31546,7 @@ export class ObjectCoreV1Api { * replace the specified LimitRange * @param param the request object */ - public replaceNamespacedLimitRange(param: CoreV1ApiReplaceNamespacedLimitRangeRequest, options?: Configuration): Promise { + public replaceNamespacedLimitRange(param: CoreV1ApiReplaceNamespacedLimitRangeRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedLimitRange(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31553,7 +31554,7 @@ export class ObjectCoreV1Api { * replace the specified PersistentVolumeClaim * @param param the request object */ - public replaceNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31561,7 +31562,7 @@ export class ObjectCoreV1Api { * replace the specified PersistentVolumeClaim * @param param the request object */ - public replaceNamespacedPersistentVolumeClaim(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise { + public replaceNamespacedPersistentVolumeClaim(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPersistentVolumeClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31569,7 +31570,7 @@ export class ObjectCoreV1Api { * replace status of the specified PersistentVolumeClaim * @param param the request object */ - public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31577,7 +31578,7 @@ export class ObjectCoreV1Api { * replace status of the specified PersistentVolumeClaim * @param param the request object */ - public replaceNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise { + public replaceNamespacedPersistentVolumeClaimStatus(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31585,7 +31586,7 @@ export class ObjectCoreV1Api { * replace the specified Pod * @param param the request object */ - public replaceNamespacedPodWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodRequest, options?: Configuration): Promise> { + public replaceNamespacedPodWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31593,7 +31594,7 @@ export class ObjectCoreV1Api { * replace the specified Pod * @param param the request object */ - public replaceNamespacedPod(param: CoreV1ApiReplaceNamespacedPodRequest, options?: Configuration): Promise { + public replaceNamespacedPod(param: CoreV1ApiReplaceNamespacedPodRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPod(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31601,7 +31602,7 @@ export class ObjectCoreV1Api { * replace ephemeralcontainers of the specified Pod * @param param the request object */ - public replaceNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31609,7 +31610,7 @@ export class ObjectCoreV1Api { * replace ephemeralcontainers of the specified Pod * @param param the request object */ - public replaceNamespacedPodEphemeralcontainers(param: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise { + public replaceNamespacedPodEphemeralcontainers(param: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodEphemeralcontainers(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31617,7 +31618,7 @@ export class ObjectCoreV1Api { * replace resize of the specified Pod * @param param the request object */ - public replaceNamespacedPodResizeWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodResizeRequest, options?: Configuration): Promise> { + public replaceNamespacedPodResizeWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodResizeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31625,7 +31626,7 @@ export class ObjectCoreV1Api { * replace resize of the specified Pod * @param param the request object */ - public replaceNamespacedPodResize(param: CoreV1ApiReplaceNamespacedPodResizeRequest, options?: Configuration): Promise { + public replaceNamespacedPodResize(param: CoreV1ApiReplaceNamespacedPodResizeRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodResize(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31633,7 +31634,7 @@ export class ObjectCoreV1Api { * replace status of the specified Pod * @param param the request object */ - public replaceNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31641,7 +31642,7 @@ export class ObjectCoreV1Api { * replace status of the specified Pod * @param param the request object */ - public replaceNamespacedPodStatus(param: CoreV1ApiReplaceNamespacedPodStatusRequest, options?: Configuration): Promise { + public replaceNamespacedPodStatus(param: CoreV1ApiReplaceNamespacedPodStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31649,7 +31650,7 @@ export class ObjectCoreV1Api { * replace the specified PodTemplate * @param param the request object */ - public replaceNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodTemplateRequest, options?: Configuration): Promise> { + public replaceNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31657,7 +31658,7 @@ export class ObjectCoreV1Api { * replace the specified PodTemplate * @param param the request object */ - public replaceNamespacedPodTemplate(param: CoreV1ApiReplaceNamespacedPodTemplateRequest, options?: Configuration): Promise { + public replaceNamespacedPodTemplate(param: CoreV1ApiReplaceNamespacedPodTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31665,7 +31666,7 @@ export class ObjectCoreV1Api { * replace the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31673,7 +31674,7 @@ export class ObjectCoreV1Api { * replace the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationController(param: CoreV1ApiReplaceNamespacedReplicationControllerRequest, options?: Configuration): Promise { + public replaceNamespacedReplicationController(param: CoreV1ApiReplaceNamespacedReplicationControllerRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicationController(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31681,7 +31682,7 @@ export class ObjectCoreV1Api { * replace scale of the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31689,7 +31690,7 @@ export class ObjectCoreV1Api { * replace scale of the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationControllerScale(param: CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise { + public replaceNamespacedReplicationControllerScale(param: CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicationControllerScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31697,7 +31698,7 @@ export class ObjectCoreV1Api { * replace status of the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31705,7 +31706,7 @@ export class ObjectCoreV1Api { * replace status of the specified ReplicationController * @param param the request object */ - public replaceNamespacedReplicationControllerStatus(param: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise { + public replaceNamespacedReplicationControllerStatus(param: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedReplicationControllerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31713,7 +31714,7 @@ export class ObjectCoreV1Api { * replace the specified ResourceQuota * @param param the request object */ - public replaceNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31721,7 +31722,7 @@ export class ObjectCoreV1Api { * replace the specified ResourceQuota * @param param the request object */ - public replaceNamespacedResourceQuota(param: CoreV1ApiReplaceNamespacedResourceQuotaRequest, options?: Configuration): Promise { + public replaceNamespacedResourceQuota(param: CoreV1ApiReplaceNamespacedResourceQuotaRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceQuota(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31729,7 +31730,7 @@ export class ObjectCoreV1Api { * replace status of the specified ResourceQuota * @param param the request object */ - public replaceNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31737,7 +31738,7 @@ export class ObjectCoreV1Api { * replace status of the specified ResourceQuota * @param param the request object */ - public replaceNamespacedResourceQuotaStatus(param: CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise { + public replaceNamespacedResourceQuotaStatus(param: CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceQuotaStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31745,7 +31746,7 @@ export class ObjectCoreV1Api { * replace the specified Secret * @param param the request object */ - public replaceNamespacedSecretWithHttpInfo(param: CoreV1ApiReplaceNamespacedSecretRequest, options?: Configuration): Promise> { + public replaceNamespacedSecretWithHttpInfo(param: CoreV1ApiReplaceNamespacedSecretRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedSecretWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31753,7 +31754,7 @@ export class ObjectCoreV1Api { * replace the specified Secret * @param param the request object */ - public replaceNamespacedSecret(param: CoreV1ApiReplaceNamespacedSecretRequest, options?: Configuration): Promise { + public replaceNamespacedSecret(param: CoreV1ApiReplaceNamespacedSecretRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedSecret(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31761,7 +31762,7 @@ export class ObjectCoreV1Api { * replace the specified Service * @param param the request object */ - public replaceNamespacedServiceWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceRequest, options?: Configuration): Promise> { + public replaceNamespacedServiceWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedServiceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31769,7 +31770,7 @@ export class ObjectCoreV1Api { * replace the specified Service * @param param the request object */ - public replaceNamespacedService(param: CoreV1ApiReplaceNamespacedServiceRequest, options?: Configuration): Promise { + public replaceNamespacedService(param: CoreV1ApiReplaceNamespacedServiceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedService(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31777,7 +31778,7 @@ export class ObjectCoreV1Api { * replace the specified ServiceAccount * @param param the request object */ - public replaceNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceAccountRequest, options?: Configuration): Promise> { + public replaceNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31785,7 +31786,7 @@ export class ObjectCoreV1Api { * replace the specified ServiceAccount * @param param the request object */ - public replaceNamespacedServiceAccount(param: CoreV1ApiReplaceNamespacedServiceAccountRequest, options?: Configuration): Promise { + public replaceNamespacedServiceAccount(param: CoreV1ApiReplaceNamespacedServiceAccountRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedServiceAccount(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31793,7 +31794,7 @@ export class ObjectCoreV1Api { * replace status of the specified Service * @param param the request object */ - public replaceNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31801,7 +31802,7 @@ export class ObjectCoreV1Api { * replace status of the specified Service * @param param the request object */ - public replaceNamespacedServiceStatus(param: CoreV1ApiReplaceNamespacedServiceStatusRequest, options?: Configuration): Promise { + public replaceNamespacedServiceStatus(param: CoreV1ApiReplaceNamespacedServiceStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedServiceStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31809,7 +31810,7 @@ export class ObjectCoreV1Api { * replace the specified Node * @param param the request object */ - public replaceNodeWithHttpInfo(param: CoreV1ApiReplaceNodeRequest, options?: Configuration): Promise> { + public replaceNodeWithHttpInfo(param: CoreV1ApiReplaceNodeRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31817,7 +31818,7 @@ export class ObjectCoreV1Api { * replace the specified Node * @param param the request object */ - public replaceNode(param: CoreV1ApiReplaceNodeRequest, options?: Configuration): Promise { + public replaceNode(param: CoreV1ApiReplaceNodeRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31825,7 +31826,7 @@ export class ObjectCoreV1Api { * replace status of the specified Node * @param param the request object */ - public replaceNodeStatusWithHttpInfo(param: CoreV1ApiReplaceNodeStatusRequest, options?: Configuration): Promise> { + public replaceNodeStatusWithHttpInfo(param: CoreV1ApiReplaceNodeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNodeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31833,7 +31834,7 @@ export class ObjectCoreV1Api { * replace status of the specified Node * @param param the request object */ - public replaceNodeStatus(param: CoreV1ApiReplaceNodeStatusRequest, options?: Configuration): Promise { + public replaceNodeStatus(param: CoreV1ApiReplaceNodeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNodeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31841,7 +31842,7 @@ export class ObjectCoreV1Api { * replace the specified PersistentVolume * @param param the request object */ - public replacePersistentVolumeWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeRequest, options?: Configuration): Promise> { + public replacePersistentVolumeWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeRequest, options?: ConfigurationOptions): Promise> { return this.api.replacePersistentVolumeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31849,7 +31850,7 @@ export class ObjectCoreV1Api { * replace the specified PersistentVolume * @param param the request object */ - public replacePersistentVolume(param: CoreV1ApiReplacePersistentVolumeRequest, options?: Configuration): Promise { + public replacePersistentVolume(param: CoreV1ApiReplacePersistentVolumeRequest, options?: ConfigurationOptions): Promise { return this.api.replacePersistentVolume(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31857,7 +31858,7 @@ export class ObjectCoreV1Api { * replace status of the specified PersistentVolume * @param param the request object */ - public replacePersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeStatusRequest, options?: Configuration): Promise> { + public replacePersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replacePersistentVolumeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -31865,7 +31866,7 @@ export class ObjectCoreV1Api { * replace status of the specified PersistentVolume * @param param the request object */ - public replacePersistentVolumeStatus(param: CoreV1ApiReplacePersistentVolumeStatusRequest, options?: Configuration): Promise { + public replacePersistentVolumeStatus(param: CoreV1ApiReplacePersistentVolumeStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replacePersistentVolumeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33596,7 +33597,7 @@ export class ObjectCustomObjectsApi { * Creates a cluster scoped Custom object * @param param the request object */ - public createClusterCustomObjectWithHttpInfo(param: CustomObjectsApiCreateClusterCustomObjectRequest, options?: Configuration): Promise> { + public createClusterCustomObjectWithHttpInfo(param: CustomObjectsApiCreateClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.createClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33604,7 +33605,7 @@ export class ObjectCustomObjectsApi { * Creates a cluster scoped Custom object * @param param the request object */ - public createClusterCustomObject(param: CustomObjectsApiCreateClusterCustomObjectRequest, options?: Configuration): Promise { + public createClusterCustomObject(param: CustomObjectsApiCreateClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.createClusterCustomObject(param.group, param.version, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33612,7 +33613,7 @@ export class ObjectCustomObjectsApi { * Creates a namespace scoped Custom object * @param param the request object */ - public createNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiCreateNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public createNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiCreateNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33620,7 +33621,7 @@ export class ObjectCustomObjectsApi { * Creates a namespace scoped Custom object * @param param the request object */ - public createNamespacedCustomObject(param: CustomObjectsApiCreateNamespacedCustomObjectRequest, options?: Configuration): Promise { + public createNamespacedCustomObject(param: CustomObjectsApiCreateNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33628,7 +33629,7 @@ export class ObjectCustomObjectsApi { * Deletes the specified cluster scoped custom object * @param param the request object */ - public deleteClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteClusterCustomObjectRequest, options?: Configuration): Promise> { + public deleteClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33636,7 +33637,7 @@ export class ObjectCustomObjectsApi { * Deletes the specified cluster scoped custom object * @param param the request object */ - public deleteClusterCustomObject(param: CustomObjectsApiDeleteClusterCustomObjectRequest, options?: Configuration): Promise { + public deleteClusterCustomObject(param: CustomObjectsApiDeleteClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.deleteClusterCustomObject(param.group, param.version, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33644,7 +33645,7 @@ export class ObjectCustomObjectsApi { * Delete collection of cluster scoped custom objects * @param param the request object */ - public deleteCollectionClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, options?: Configuration): Promise> { + public deleteCollectionClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.pretty, param.labelSelector, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33652,7 +33653,7 @@ export class ObjectCustomObjectsApi { * Delete collection of cluster scoped custom objects * @param param the request object */ - public deleteCollectionClusterCustomObject(param: CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, options?: Configuration): Promise { + public deleteCollectionClusterCustomObject(param: CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionClusterCustomObject(param.group, param.version, param.plural, param.pretty, param.labelSelector, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33660,7 +33661,7 @@ export class ObjectCustomObjectsApi { * Delete collection of namespace scoped custom objects * @param param the request object */ - public deleteCollectionNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.pretty, param.labelSelector, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.fieldSelector, param.body, options).toPromise(); } @@ -33668,7 +33669,7 @@ export class ObjectCustomObjectsApi { * Delete collection of namespace scoped custom objects * @param param the request object */ - public deleteCollectionNamespacedCustomObject(param: CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedCustomObject(param: CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.pretty, param.labelSelector, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.fieldSelector, param.body, options).toPromise(); } @@ -33676,7 +33677,7 @@ export class ObjectCustomObjectsApi { * Deletes the specified namespace scoped custom object * @param param the request object */ - public deleteNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public deleteNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33684,7 +33685,7 @@ export class ObjectCustomObjectsApi { * Deletes the specified namespace scoped custom object * @param param the request object */ - public deleteNamespacedCustomObject(param: CustomObjectsApiDeleteNamespacedCustomObjectRequest, options?: Configuration): Promise { + public deleteNamespacedCustomObject(param: CustomObjectsApiDeleteNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } @@ -33692,7 +33693,7 @@ export class ObjectCustomObjectsApi { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: CustomObjectsApiGetAPIResourcesRequest, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: CustomObjectsApiGetAPIResourcesRequest, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo(param.group, param.version, options).toPromise(); } @@ -33700,7 +33701,7 @@ export class ObjectCustomObjectsApi { * get available resources * @param param the request object */ - public getAPIResources(param: CustomObjectsApiGetAPIResourcesRequest, options?: Configuration): Promise { + public getAPIResources(param: CustomObjectsApiGetAPIResourcesRequest, options?: ConfigurationOptions): Promise { return this.api.getAPIResources(param.group, param.version, options).toPromise(); } @@ -33708,7 +33709,7 @@ export class ObjectCustomObjectsApi { * Returns a cluster scoped custom object * @param param the request object */ - public getClusterCustomObjectWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectRequest, options?: Configuration): Promise> { + public getClusterCustomObjectWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.getClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33716,7 +33717,7 @@ export class ObjectCustomObjectsApi { * Returns a cluster scoped custom object * @param param the request object */ - public getClusterCustomObject(param: CustomObjectsApiGetClusterCustomObjectRequest, options?: Configuration): Promise { + public getClusterCustomObject(param: CustomObjectsApiGetClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.getClusterCustomObject(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33724,7 +33725,7 @@ export class ObjectCustomObjectsApi { * read scale of the specified custom object * @param param the request object */ - public getClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + public getClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.getClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33732,7 +33733,7 @@ export class ObjectCustomObjectsApi { * read scale of the specified custom object * @param param the request object */ - public getClusterCustomObjectScale(param: CustomObjectsApiGetClusterCustomObjectScaleRequest, options?: Configuration): Promise { + public getClusterCustomObjectScale(param: CustomObjectsApiGetClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.getClusterCustomObjectScale(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33740,7 +33741,7 @@ export class ObjectCustomObjectsApi { * read status of the specified cluster scoped custom object * @param param the request object */ - public getClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + public getClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.getClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33748,7 +33749,7 @@ export class ObjectCustomObjectsApi { * read status of the specified cluster scoped custom object * @param param the request object */ - public getClusterCustomObjectStatus(param: CustomObjectsApiGetClusterCustomObjectStatusRequest, options?: Configuration): Promise { + public getClusterCustomObjectStatus(param: CustomObjectsApiGetClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.getClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, options).toPromise(); } @@ -33756,7 +33757,7 @@ export class ObjectCustomObjectsApi { * Returns a namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public getNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.getNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33764,7 +33765,7 @@ export class ObjectCustomObjectsApi { * Returns a namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObject(param: CustomObjectsApiGetNamespacedCustomObjectRequest, options?: Configuration): Promise { + public getNamespacedCustomObject(param: CustomObjectsApiGetNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.getNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33772,7 +33773,7 @@ export class ObjectCustomObjectsApi { * read scale of the specified namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + public getNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.getNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33780,7 +33781,7 @@ export class ObjectCustomObjectsApi { * read scale of the specified namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObjectScale(param: CustomObjectsApiGetNamespacedCustomObjectScaleRequest, options?: Configuration): Promise { + public getNamespacedCustomObjectScale(param: CustomObjectsApiGetNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.getNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33788,7 +33789,7 @@ export class ObjectCustomObjectsApi { * read status of the specified namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + public getNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.getNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33796,7 +33797,7 @@ export class ObjectCustomObjectsApi { * read status of the specified namespace scoped custom object * @param param the request object */ - public getNamespacedCustomObjectStatus(param: CustomObjectsApiGetNamespacedCustomObjectStatusRequest, options?: Configuration): Promise { + public getNamespacedCustomObjectStatus(param: CustomObjectsApiGetNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.getNamespacedCustomObjectStatus(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } @@ -33804,7 +33805,7 @@ export class ObjectCustomObjectsApi { * list or watch cluster scoped custom objects * @param param the request object */ - public listClusterCustomObjectWithHttpInfo(param: CustomObjectsApiListClusterCustomObjectRequest, options?: Configuration): Promise> { + public listClusterCustomObjectWithHttpInfo(param: CustomObjectsApiListClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.listClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33812,7 +33813,7 @@ export class ObjectCustomObjectsApi { * list or watch cluster scoped custom objects * @param param the request object */ - public listClusterCustomObject(param: CustomObjectsApiListClusterCustomObjectRequest, options?: Configuration): Promise { + public listClusterCustomObject(param: CustomObjectsApiListClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.listClusterCustomObject(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33820,7 +33821,7 @@ export class ObjectCustomObjectsApi { * list or watch namespace scoped custom objects * @param param the request object */ - public listCustomObjectForAllNamespacesWithHttpInfo(param: CustomObjectsApiListCustomObjectForAllNamespacesRequest, options?: Configuration): Promise> { + public listCustomObjectForAllNamespacesWithHttpInfo(param: CustomObjectsApiListCustomObjectForAllNamespacesRequest, options?: ConfigurationOptions): Promise> { return this.api.listCustomObjectForAllNamespacesWithHttpInfo(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33828,7 +33829,7 @@ export class ObjectCustomObjectsApi { * list or watch namespace scoped custom objects * @param param the request object */ - public listCustomObjectForAllNamespaces(param: CustomObjectsApiListCustomObjectForAllNamespacesRequest, options?: Configuration): Promise { + public listCustomObjectForAllNamespaces(param: CustomObjectsApiListCustomObjectForAllNamespacesRequest, options?: ConfigurationOptions): Promise { return this.api.listCustomObjectForAllNamespaces(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33836,7 +33837,7 @@ export class ObjectCustomObjectsApi { * list or watch namespace scoped custom objects * @param param the request object */ - public listNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiListNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public listNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiListNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33844,7 +33845,7 @@ export class ObjectCustomObjectsApi { * list or watch namespace scoped custom objects * @param param the request object */ - public listNamespacedCustomObject(param: CustomObjectsApiListNamespacedCustomObjectRequest, options?: Configuration): Promise { + public listNamespacedCustomObject(param: CustomObjectsApiListNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -33852,7 +33853,7 @@ export class ObjectCustomObjectsApi { * patch the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObjectWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectRequest, options?: Configuration): Promise> { + public patchClusterCustomObjectWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33860,7 +33861,7 @@ export class ObjectCustomObjectsApi { * patch the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObject(param: CustomObjectsApiPatchClusterCustomObjectRequest, options?: Configuration): Promise { + public patchClusterCustomObject(param: CustomObjectsApiPatchClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterCustomObject(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33868,7 +33869,7 @@ export class ObjectCustomObjectsApi { * partially update scale of the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + public patchClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33876,7 +33877,7 @@ export class ObjectCustomObjectsApi { * partially update scale of the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObjectScale(param: CustomObjectsApiPatchClusterCustomObjectScaleRequest, options?: Configuration): Promise { + public patchClusterCustomObjectScale(param: CustomObjectsApiPatchClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterCustomObjectScale(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33884,7 +33885,7 @@ export class ObjectCustomObjectsApi { * partially update status of the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + public patchClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33892,7 +33893,7 @@ export class ObjectCustomObjectsApi { * partially update status of the specified cluster scoped custom object * @param param the request object */ - public patchClusterCustomObjectStatus(param: CustomObjectsApiPatchClusterCustomObjectStatusRequest, options?: Configuration): Promise { + public patchClusterCustomObjectStatus(param: CustomObjectsApiPatchClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33900,7 +33901,7 @@ export class ObjectCustomObjectsApi { * patch the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public patchNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33908,7 +33909,7 @@ export class ObjectCustomObjectsApi { * patch the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObject(param: CustomObjectsApiPatchNamespacedCustomObjectRequest, options?: Configuration): Promise { + public patchNamespacedCustomObject(param: CustomObjectsApiPatchNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33916,7 +33917,7 @@ export class ObjectCustomObjectsApi { * partially update scale of the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + public patchNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33924,7 +33925,7 @@ export class ObjectCustomObjectsApi { * partially update scale of the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObjectScale(param: CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, options?: Configuration): Promise { + public patchNamespacedCustomObjectScale(param: CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33932,7 +33933,7 @@ export class ObjectCustomObjectsApi { * partially update status of the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + public patchNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33940,7 +33941,7 @@ export class ObjectCustomObjectsApi { * partially update status of the specified namespace scoped custom object * @param param the request object */ - public patchNamespacedCustomObjectStatus(param: CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, options?: Configuration): Promise { + public patchNamespacedCustomObjectStatus(param: CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCustomObjectStatus(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -33948,7 +33949,7 @@ export class ObjectCustomObjectsApi { * replace the specified cluster scoped custom object * @param param the request object */ - public replaceClusterCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectRequest, options?: Configuration): Promise> { + public replaceClusterCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33956,7 +33957,7 @@ export class ObjectCustomObjectsApi { * replace the specified cluster scoped custom object * @param param the request object */ - public replaceClusterCustomObject(param: CustomObjectsApiReplaceClusterCustomObjectRequest, options?: Configuration): Promise { + public replaceClusterCustomObject(param: CustomObjectsApiReplaceClusterCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterCustomObject(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33964,7 +33965,7 @@ export class ObjectCustomObjectsApi { * replace scale of the specified cluster scoped custom object * @param param the request object */ - public replaceClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + public replaceClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33972,7 +33973,7 @@ export class ObjectCustomObjectsApi { * replace scale of the specified cluster scoped custom object * @param param the request object */ - public replaceClusterCustomObjectScale(param: CustomObjectsApiReplaceClusterCustomObjectScaleRequest, options?: Configuration): Promise { + public replaceClusterCustomObjectScale(param: CustomObjectsApiReplaceClusterCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterCustomObjectScale(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33980,7 +33981,7 @@ export class ObjectCustomObjectsApi { * replace status of the cluster scoped specified custom object * @param param the request object */ - public replaceClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + public replaceClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33988,7 +33989,7 @@ export class ObjectCustomObjectsApi { * replace status of the cluster scoped specified custom object * @param param the request object */ - public replaceClusterCustomObjectStatus(param: CustomObjectsApiReplaceClusterCustomObjectStatusRequest, options?: Configuration): Promise { + public replaceClusterCustomObjectStatus(param: CustomObjectsApiReplaceClusterCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -33996,7 +33997,7 @@ export class ObjectCustomObjectsApi { * replace the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectRequest, options?: Configuration): Promise> { + public replaceNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34004,7 +34005,7 @@ export class ObjectCustomObjectsApi { * replace the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObject(param: CustomObjectsApiReplaceNamespacedCustomObjectRequest, options?: Configuration): Promise { + public replaceNamespacedCustomObject(param: CustomObjectsApiReplaceNamespacedCustomObjectRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34012,7 +34013,7 @@ export class ObjectCustomObjectsApi { * replace scale of the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + public replaceNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34020,7 +34021,7 @@ export class ObjectCustomObjectsApi { * replace scale of the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObjectScale(param: CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, options?: Configuration): Promise { + public replaceNamespacedCustomObjectScale(param: CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34028,7 +34029,7 @@ export class ObjectCustomObjectsApi { * replace status of the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34036,7 +34037,7 @@ export class ObjectCustomObjectsApi { * replace status of the specified namespace scoped custom object * @param param the request object */ - public replaceNamespacedCustomObjectStatus(param: CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, options?: Configuration): Promise { + public replaceNamespacedCustomObjectStatus(param: CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCustomObjectStatus(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34059,7 +34060,7 @@ export class ObjectDiscoveryApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: DiscoveryApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: DiscoveryApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -34067,7 +34068,7 @@ export class ObjectDiscoveryApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: DiscoveryApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: DiscoveryApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -34613,7 +34614,7 @@ export class ObjectDiscoveryV1Api { * create an EndpointSlice * @param param the request object */ - public createNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public createNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedEndpointSliceWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34621,7 +34622,7 @@ export class ObjectDiscoveryV1Api { * create an EndpointSlice * @param param the request object */ - public createNamespacedEndpointSlice(param: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public createNamespacedEndpointSlice(param: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedEndpointSlice(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34629,7 +34630,7 @@ export class ObjectDiscoveryV1Api { * delete collection of EndpointSlice * @param param the request object */ - public deleteCollectionNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -34637,7 +34638,7 @@ export class ObjectDiscoveryV1Api { * delete collection of EndpointSlice * @param param the request object */ - public deleteCollectionNamespacedEndpointSlice(param: DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedEndpointSlice(param: DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedEndpointSlice(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -34645,7 +34646,7 @@ export class ObjectDiscoveryV1Api { * delete an EndpointSlice * @param param the request object */ - public deleteNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public deleteNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -34653,7 +34654,7 @@ export class ObjectDiscoveryV1Api { * delete an EndpointSlice * @param param the request object */ - public deleteNamespacedEndpointSlice(param: DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public deleteNamespacedEndpointSlice(param: DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedEndpointSlice(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -34661,7 +34662,7 @@ export class ObjectDiscoveryV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: DiscoveryV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: DiscoveryV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -34669,7 +34670,7 @@ export class ObjectDiscoveryV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: DiscoveryV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: DiscoveryV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -34677,7 +34678,7 @@ export class ObjectDiscoveryV1Api { * list or watch objects of kind EndpointSlice * @param param the request object */ - public listEndpointSliceForAllNamespacesWithHttpInfo(param: DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listEndpointSliceForAllNamespacesWithHttpInfo(param: DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listEndpointSliceForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -34685,7 +34686,7 @@ export class ObjectDiscoveryV1Api { * list or watch objects of kind EndpointSlice * @param param the request object */ - public listEndpointSliceForAllNamespaces(param: DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listEndpointSliceForAllNamespaces(param: DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listEndpointSliceForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -34693,7 +34694,7 @@ export class ObjectDiscoveryV1Api { * list or watch objects of kind EndpointSlice * @param param the request object */ - public listNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiListNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public listNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiListNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -34701,7 +34702,7 @@ export class ObjectDiscoveryV1Api { * list or watch objects of kind EndpointSlice * @param param the request object */ - public listNamespacedEndpointSlice(param: DiscoveryV1ApiListNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public listNamespacedEndpointSlice(param: DiscoveryV1ApiListNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedEndpointSlice(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -34709,7 +34710,7 @@ export class ObjectDiscoveryV1Api { * partially update the specified EndpointSlice * @param param the request object */ - public patchNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public patchNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -34717,7 +34718,7 @@ export class ObjectDiscoveryV1Api { * partially update the specified EndpointSlice * @param param the request object */ - public patchNamespacedEndpointSlice(param: DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public patchNamespacedEndpointSlice(param: DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedEndpointSlice(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -34725,7 +34726,7 @@ export class ObjectDiscoveryV1Api { * read the specified EndpointSlice * @param param the request object */ - public readNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReadNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public readNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReadNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -34733,7 +34734,7 @@ export class ObjectDiscoveryV1Api { * read the specified EndpointSlice * @param param the request object */ - public readNamespacedEndpointSlice(param: DiscoveryV1ApiReadNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public readNamespacedEndpointSlice(param: DiscoveryV1ApiReadNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedEndpointSlice(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -34741,7 +34742,7 @@ export class ObjectDiscoveryV1Api { * replace the specified EndpointSlice * @param param the request object */ - public replaceNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + public replaceNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34749,7 +34750,7 @@ export class ObjectDiscoveryV1Api { * replace the specified EndpointSlice * @param param the request object */ - public replaceNamespacedEndpointSlice(param: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, options?: Configuration): Promise { + public replaceNamespacedEndpointSlice(param: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedEndpointSlice(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -34772,7 +34773,7 @@ export class ObjectEventsApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: EventsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: EventsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -34780,7 +34781,7 @@ export class ObjectEventsApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: EventsApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: EventsApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -35326,7 +35327,7 @@ export class ObjectEventsV1Api { * create an Event * @param param the request object */ - public createNamespacedEventWithHttpInfo(param: EventsV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise> { + public createNamespacedEventWithHttpInfo(param: EventsV1ApiCreateNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedEventWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -35334,7 +35335,7 @@ export class ObjectEventsV1Api { * create an Event * @param param the request object */ - public createNamespacedEvent(param: EventsV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise { + public createNamespacedEvent(param: EventsV1ApiCreateNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedEvent(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -35342,7 +35343,7 @@ export class ObjectEventsV1Api { * delete collection of Event * @param param the request object */ - public deleteCollectionNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteCollectionNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedEventWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -35350,7 +35351,7 @@ export class ObjectEventsV1Api { * delete collection of Event * @param param the request object */ - public deleteCollectionNamespacedEvent(param: EventsV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedEvent(param: EventsV1ApiDeleteCollectionNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedEvent(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -35358,7 +35359,7 @@ export class ObjectEventsV1Api { * delete an Event * @param param the request object */ - public deleteNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise> { + public deleteNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -35366,7 +35367,7 @@ export class ObjectEventsV1Api { * delete an Event * @param param the request object */ - public deleteNamespacedEvent(param: EventsV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise { + public deleteNamespacedEvent(param: EventsV1ApiDeleteNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedEvent(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -35374,7 +35375,7 @@ export class ObjectEventsV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: EventsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: EventsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -35382,7 +35383,7 @@ export class ObjectEventsV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: EventsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: EventsV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -35390,7 +35391,7 @@ export class ObjectEventsV1Api { * list or watch objects of kind Event * @param param the request object */ - public listEventForAllNamespacesWithHttpInfo(param: EventsV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listEventForAllNamespacesWithHttpInfo(param: EventsV1ApiListEventForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listEventForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -35398,7 +35399,7 @@ export class ObjectEventsV1Api { * list or watch objects of kind Event * @param param the request object */ - public listEventForAllNamespaces(param: EventsV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listEventForAllNamespaces(param: EventsV1ApiListEventForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listEventForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -35406,7 +35407,7 @@ export class ObjectEventsV1Api { * list or watch objects of kind Event * @param param the request object */ - public listNamespacedEventWithHttpInfo(param: EventsV1ApiListNamespacedEventRequest, options?: Configuration): Promise> { + public listNamespacedEventWithHttpInfo(param: EventsV1ApiListNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedEventWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -35414,7 +35415,7 @@ export class ObjectEventsV1Api { * list or watch objects of kind Event * @param param the request object */ - public listNamespacedEvent(param: EventsV1ApiListNamespacedEventRequest, options?: Configuration): Promise { + public listNamespacedEvent(param: EventsV1ApiListNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedEvent(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -35422,7 +35423,7 @@ export class ObjectEventsV1Api { * partially update the specified Event * @param param the request object */ - public patchNamespacedEventWithHttpInfo(param: EventsV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise> { + public patchNamespacedEventWithHttpInfo(param: EventsV1ApiPatchNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -35430,7 +35431,7 @@ export class ObjectEventsV1Api { * partially update the specified Event * @param param the request object */ - public patchNamespacedEvent(param: EventsV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise { + public patchNamespacedEvent(param: EventsV1ApiPatchNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -35438,7 +35439,7 @@ export class ObjectEventsV1Api { * read the specified Event * @param param the request object */ - public readNamespacedEventWithHttpInfo(param: EventsV1ApiReadNamespacedEventRequest, options?: Configuration): Promise> { + public readNamespacedEventWithHttpInfo(param: EventsV1ApiReadNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -35446,7 +35447,7 @@ export class ObjectEventsV1Api { * read the specified Event * @param param the request object */ - public readNamespacedEvent(param: EventsV1ApiReadNamespacedEventRequest, options?: Configuration): Promise { + public readNamespacedEvent(param: EventsV1ApiReadNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedEvent(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -35454,7 +35455,7 @@ export class ObjectEventsV1Api { * replace the specified Event * @param param the request object */ - public replaceNamespacedEventWithHttpInfo(param: EventsV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise> { + public replaceNamespacedEventWithHttpInfo(param: EventsV1ApiReplaceNamespacedEventRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -35462,7 +35463,7 @@ export class ObjectEventsV1Api { * replace the specified Event * @param param the request object */ - public replaceNamespacedEvent(param: EventsV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise { + public replaceNamespacedEvent(param: EventsV1ApiReplaceNamespacedEventRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -35485,7 +35486,7 @@ export class ObjectFlowcontrolApiserverApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: FlowcontrolApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: FlowcontrolApiserverApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -35493,7 +35494,7 @@ export class ObjectFlowcontrolApiserverApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: FlowcontrolApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: FlowcontrolApiserverApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -36528,7 +36529,7 @@ export class ObjectFlowcontrolApiserverV1Api { * create a FlowSchema * @param param the request object */ - public createFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, options?: Configuration): Promise> { + public createFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, options?: ConfigurationOptions): Promise> { return this.api.createFlowSchemaWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36536,7 +36537,7 @@ export class ObjectFlowcontrolApiserverV1Api { * create a FlowSchema * @param param the request object */ - public createFlowSchema(param: FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, options?: Configuration): Promise { + public createFlowSchema(param: FlowcontrolApiserverV1ApiCreateFlowSchemaRequest, options?: ConfigurationOptions): Promise { return this.api.createFlowSchema(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36544,7 +36545,7 @@ export class ObjectFlowcontrolApiserverV1Api { * create a PriorityLevelConfiguration * @param param the request object */ - public createPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + public createPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.createPriorityLevelConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36552,7 +36553,7 @@ export class ObjectFlowcontrolApiserverV1Api { * create a PriorityLevelConfiguration * @param param the request object */ - public createPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, options?: Configuration): Promise { + public createPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiCreatePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.createPriorityLevelConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36560,7 +36561,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete collection of FlowSchema * @param param the request object */ - public deleteCollectionFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest = {}, options?: Configuration): Promise> { + public deleteCollectionFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionFlowSchemaWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -36568,7 +36569,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete collection of FlowSchema * @param param the request object */ - public deleteCollectionFlowSchema(param: FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest = {}, options?: Configuration): Promise { + public deleteCollectionFlowSchema(param: FlowcontrolApiserverV1ApiDeleteCollectionFlowSchemaRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionFlowSchema(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -36576,7 +36577,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete collection of PriorityLevelConfiguration * @param param the request object */ - public deleteCollectionPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise> { + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -36584,7 +36585,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete collection of PriorityLevelConfiguration * @param param the request object */ - public deleteCollectionPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise { + public deleteCollectionPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiDeleteCollectionPriorityLevelConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionPriorityLevelConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -36592,7 +36593,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete a FlowSchema * @param param the request object */ - public deleteFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, options?: Configuration): Promise> { + public deleteFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteFlowSchemaWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -36600,7 +36601,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete a FlowSchema * @param param the request object */ - public deleteFlowSchema(param: FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, options?: Configuration): Promise { + public deleteFlowSchema(param: FlowcontrolApiserverV1ApiDeleteFlowSchemaRequest, options?: ConfigurationOptions): Promise { return this.api.deleteFlowSchema(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -36608,7 +36609,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete a PriorityLevelConfiguration * @param param the request object */ - public deletePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + public deletePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.deletePriorityLevelConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -36616,7 +36617,7 @@ export class ObjectFlowcontrolApiserverV1Api { * delete a PriorityLevelConfiguration * @param param the request object */ - public deletePriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, options?: Configuration): Promise { + public deletePriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiDeletePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.deletePriorityLevelConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -36624,7 +36625,7 @@ export class ObjectFlowcontrolApiserverV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: FlowcontrolApiserverV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: FlowcontrolApiserverV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -36632,7 +36633,7 @@ export class ObjectFlowcontrolApiserverV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: FlowcontrolApiserverV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: FlowcontrolApiserverV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -36640,7 +36641,7 @@ export class ObjectFlowcontrolApiserverV1Api { * list or watch objects of kind FlowSchema * @param param the request object */ - public listFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiListFlowSchemaRequest = {}, options?: Configuration): Promise> { + public listFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiListFlowSchemaRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listFlowSchemaWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -36648,7 +36649,7 @@ export class ObjectFlowcontrolApiserverV1Api { * list or watch objects of kind FlowSchema * @param param the request object */ - public listFlowSchema(param: FlowcontrolApiserverV1ApiListFlowSchemaRequest = {}, options?: Configuration): Promise { + public listFlowSchema(param: FlowcontrolApiserverV1ApiListFlowSchemaRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listFlowSchema(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -36656,7 +36657,7 @@ export class ObjectFlowcontrolApiserverV1Api { * list or watch objects of kind PriorityLevelConfiguration * @param param the request object */ - public listPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise> { + public listPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPriorityLevelConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -36664,7 +36665,7 @@ export class ObjectFlowcontrolApiserverV1Api { * list or watch objects of kind PriorityLevelConfiguration * @param param the request object */ - public listPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise { + public listPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiListPriorityLevelConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPriorityLevelConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -36672,7 +36673,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update the specified FlowSchema * @param param the request object */ - public patchFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, options?: Configuration): Promise> { + public patchFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, options?: ConfigurationOptions): Promise> { return this.api.patchFlowSchemaWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36680,7 +36681,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update the specified FlowSchema * @param param the request object */ - public patchFlowSchema(param: FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, options?: Configuration): Promise { + public patchFlowSchema(param: FlowcontrolApiserverV1ApiPatchFlowSchemaRequest, options?: ConfigurationOptions): Promise { return this.api.patchFlowSchema(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36688,7 +36689,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update status of the specified FlowSchema * @param param the request object */ - public patchFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, options?: Configuration): Promise> { + public patchFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchFlowSchemaStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36696,7 +36697,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update status of the specified FlowSchema * @param param the request object */ - public patchFlowSchemaStatus(param: FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, options?: Configuration): Promise { + public patchFlowSchemaStatus(param: FlowcontrolApiserverV1ApiPatchFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchFlowSchemaStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36704,7 +36705,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update the specified PriorityLevelConfiguration * @param param the request object */ - public patchPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, options?: Configuration): Promise> { + public patchPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.patchPriorityLevelConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36712,7 +36713,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update the specified PriorityLevelConfiguration * @param param the request object */ - public patchPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, options?: Configuration): Promise { + public patchPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.patchPriorityLevelConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36720,7 +36721,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update status of the specified PriorityLevelConfiguration * @param param the request object */ - public patchPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + public patchPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36728,7 +36729,7 @@ export class ObjectFlowcontrolApiserverV1Api { * partially update status of the specified PriorityLevelConfiguration * @param param the request object */ - public patchPriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise { + public patchPriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiPatchPriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchPriorityLevelConfigurationStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -36736,7 +36737,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read the specified FlowSchema * @param param the request object */ - public readFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiReadFlowSchemaRequest, options?: Configuration): Promise> { + public readFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiReadFlowSchemaRequest, options?: ConfigurationOptions): Promise> { return this.api.readFlowSchemaWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -36744,7 +36745,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read the specified FlowSchema * @param param the request object */ - public readFlowSchema(param: FlowcontrolApiserverV1ApiReadFlowSchemaRequest, options?: Configuration): Promise { + public readFlowSchema(param: FlowcontrolApiserverV1ApiReadFlowSchemaRequest, options?: ConfigurationOptions): Promise { return this.api.readFlowSchema(param.name, param.pretty, options).toPromise(); } @@ -36752,7 +36753,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read status of the specified FlowSchema * @param param the request object */ - public readFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, options?: Configuration): Promise> { + public readFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readFlowSchemaStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -36760,7 +36761,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read status of the specified FlowSchema * @param param the request object */ - public readFlowSchemaStatus(param: FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, options?: Configuration): Promise { + public readFlowSchemaStatus(param: FlowcontrolApiserverV1ApiReadFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readFlowSchemaStatus(param.name, param.pretty, options).toPromise(); } @@ -36768,7 +36769,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read the specified PriorityLevelConfiguration * @param param the request object */ - public readPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, options?: Configuration): Promise> { + public readPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.readPriorityLevelConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -36776,7 +36777,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read the specified PriorityLevelConfiguration * @param param the request object */ - public readPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, options?: Configuration): Promise { + public readPriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.readPriorityLevelConfiguration(param.name, param.pretty, options).toPromise(); } @@ -36784,7 +36785,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read status of the specified PriorityLevelConfiguration * @param param the request object */ - public readPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + public readPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readPriorityLevelConfigurationStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -36792,7 +36793,7 @@ export class ObjectFlowcontrolApiserverV1Api { * read status of the specified PriorityLevelConfiguration * @param param the request object */ - public readPriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise { + public readPriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiReadPriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readPriorityLevelConfigurationStatus(param.name, param.pretty, options).toPromise(); } @@ -36800,7 +36801,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace the specified FlowSchema * @param param the request object */ - public replaceFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, options?: Configuration): Promise> { + public replaceFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceFlowSchemaWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36808,7 +36809,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace the specified FlowSchema * @param param the request object */ - public replaceFlowSchema(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, options?: Configuration): Promise { + public replaceFlowSchema(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaRequest, options?: ConfigurationOptions): Promise { return this.api.replaceFlowSchema(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36816,7 +36817,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace status of the specified FlowSchema * @param param the request object */ - public replaceFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, options?: Configuration): Promise> { + public replaceFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceFlowSchemaStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36824,7 +36825,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace status of the specified FlowSchema * @param param the request object */ - public replaceFlowSchemaStatus(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, options?: Configuration): Promise { + public replaceFlowSchemaStatus(param: FlowcontrolApiserverV1ApiReplaceFlowSchemaStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceFlowSchemaStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36832,7 +36833,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace the specified PriorityLevelConfiguration * @param param the request object */ - public replacePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + public replacePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise> { return this.api.replacePriorityLevelConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36840,7 +36841,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace the specified PriorityLevelConfiguration * @param param the request object */ - public replacePriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, options?: Configuration): Promise { + public replacePriorityLevelConfiguration(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationRequest, options?: ConfigurationOptions): Promise { return this.api.replacePriorityLevelConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36848,7 +36849,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace status of the specified PriorityLevelConfiguration * @param param the request object */ - public replacePriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + public replacePriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36856,7 +36857,7 @@ export class ObjectFlowcontrolApiserverV1Api { * replace status of the specified PriorityLevelConfiguration * @param param the request object */ - public replacePriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, options?: Configuration): Promise { + public replacePriorityLevelConfigurationStatus(param: FlowcontrolApiserverV1ApiReplacePriorityLevelConfigurationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replacePriorityLevelConfigurationStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -36879,7 +36880,7 @@ export class ObjectInternalApiserverApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: InternalApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: InternalApiserverApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -36887,7 +36888,7 @@ export class ObjectInternalApiserverApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: InternalApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: InternalApiserverApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -37416,7 +37417,7 @@ export class ObjectInternalApiserverV1alpha1Api { * create a StorageVersion * @param param the request object */ - public createStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiCreateStorageVersionRequest, options?: Configuration): Promise> { + public createStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiCreateStorageVersionRequest, options?: ConfigurationOptions): Promise> { return this.api.createStorageVersionWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37424,7 +37425,7 @@ export class ObjectInternalApiserverV1alpha1Api { * create a StorageVersion * @param param the request object */ - public createStorageVersion(param: InternalApiserverV1alpha1ApiCreateStorageVersionRequest, options?: Configuration): Promise { + public createStorageVersion(param: InternalApiserverV1alpha1ApiCreateStorageVersionRequest, options?: ConfigurationOptions): Promise { return this.api.createStorageVersion(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37432,7 +37433,7 @@ export class ObjectInternalApiserverV1alpha1Api { * delete collection of StorageVersion * @param param the request object */ - public deleteCollectionStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest = {}, options?: Configuration): Promise> { + public deleteCollectionStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionStorageVersionWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -37440,7 +37441,7 @@ export class ObjectInternalApiserverV1alpha1Api { * delete collection of StorageVersion * @param param the request object */ - public deleteCollectionStorageVersion(param: InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest = {}, options?: Configuration): Promise { + public deleteCollectionStorageVersion(param: InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionStorageVersion(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -37448,7 +37449,7 @@ export class ObjectInternalApiserverV1alpha1Api { * delete a StorageVersion * @param param the request object */ - public deleteStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, options?: Configuration): Promise> { + public deleteStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteStorageVersionWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -37456,7 +37457,7 @@ export class ObjectInternalApiserverV1alpha1Api { * delete a StorageVersion * @param param the request object */ - public deleteStorageVersion(param: InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, options?: Configuration): Promise { + public deleteStorageVersion(param: InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, options?: ConfigurationOptions): Promise { return this.api.deleteStorageVersion(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -37464,7 +37465,7 @@ export class ObjectInternalApiserverV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: InternalApiserverV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: InternalApiserverV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -37472,7 +37473,7 @@ export class ObjectInternalApiserverV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResources(param: InternalApiserverV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: InternalApiserverV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -37480,7 +37481,7 @@ export class ObjectInternalApiserverV1alpha1Api { * list or watch objects of kind StorageVersion * @param param the request object */ - public listStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiListStorageVersionRequest = {}, options?: Configuration): Promise> { + public listStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiListStorageVersionRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listStorageVersionWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -37488,7 +37489,7 @@ export class ObjectInternalApiserverV1alpha1Api { * list or watch objects of kind StorageVersion * @param param the request object */ - public listStorageVersion(param: InternalApiserverV1alpha1ApiListStorageVersionRequest = {}, options?: Configuration): Promise { + public listStorageVersion(param: InternalApiserverV1alpha1ApiListStorageVersionRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listStorageVersion(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -37496,7 +37497,7 @@ export class ObjectInternalApiserverV1alpha1Api { * partially update the specified StorageVersion * @param param the request object */ - public patchStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionRequest, options?: Configuration): Promise> { + public patchStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionRequest, options?: ConfigurationOptions): Promise> { return this.api.patchStorageVersionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -37504,7 +37505,7 @@ export class ObjectInternalApiserverV1alpha1Api { * partially update the specified StorageVersion * @param param the request object */ - public patchStorageVersion(param: InternalApiserverV1alpha1ApiPatchStorageVersionRequest, options?: Configuration): Promise { + public patchStorageVersion(param: InternalApiserverV1alpha1ApiPatchStorageVersionRequest, options?: ConfigurationOptions): Promise { return this.api.patchStorageVersion(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -37512,7 +37513,7 @@ export class ObjectInternalApiserverV1alpha1Api { * partially update status of the specified StorageVersion * @param param the request object */ - public patchStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, options?: Configuration): Promise> { + public patchStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchStorageVersionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -37520,7 +37521,7 @@ export class ObjectInternalApiserverV1alpha1Api { * partially update status of the specified StorageVersion * @param param the request object */ - public patchStorageVersionStatus(param: InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, options?: Configuration): Promise { + public patchStorageVersionStatus(param: InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchStorageVersionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -37528,7 +37529,7 @@ export class ObjectInternalApiserverV1alpha1Api { * read the specified StorageVersion * @param param the request object */ - public readStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionRequest, options?: Configuration): Promise> { + public readStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionRequest, options?: ConfigurationOptions): Promise> { return this.api.readStorageVersionWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -37536,7 +37537,7 @@ export class ObjectInternalApiserverV1alpha1Api { * read the specified StorageVersion * @param param the request object */ - public readStorageVersion(param: InternalApiserverV1alpha1ApiReadStorageVersionRequest, options?: Configuration): Promise { + public readStorageVersion(param: InternalApiserverV1alpha1ApiReadStorageVersionRequest, options?: ConfigurationOptions): Promise { return this.api.readStorageVersion(param.name, param.pretty, options).toPromise(); } @@ -37544,7 +37545,7 @@ export class ObjectInternalApiserverV1alpha1Api { * read status of the specified StorageVersion * @param param the request object */ - public readStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, options?: Configuration): Promise> { + public readStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readStorageVersionStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -37552,7 +37553,7 @@ export class ObjectInternalApiserverV1alpha1Api { * read status of the specified StorageVersion * @param param the request object */ - public readStorageVersionStatus(param: InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, options?: Configuration): Promise { + public readStorageVersionStatus(param: InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readStorageVersionStatus(param.name, param.pretty, options).toPromise(); } @@ -37560,7 +37561,7 @@ export class ObjectInternalApiserverV1alpha1Api { * replace the specified StorageVersion * @param param the request object */ - public replaceStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, options?: Configuration): Promise> { + public replaceStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceStorageVersionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37568,7 +37569,7 @@ export class ObjectInternalApiserverV1alpha1Api { * replace the specified StorageVersion * @param param the request object */ - public replaceStorageVersion(param: InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, options?: Configuration): Promise { + public replaceStorageVersion(param: InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, options?: ConfigurationOptions): Promise { return this.api.replaceStorageVersion(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37576,7 +37577,7 @@ export class ObjectInternalApiserverV1alpha1Api { * replace status of the specified StorageVersion * @param param the request object */ - public replaceStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, options?: Configuration): Promise> { + public replaceStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceStorageVersionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37584,7 +37585,7 @@ export class ObjectInternalApiserverV1alpha1Api { * replace status of the specified StorageVersion * @param param the request object */ - public replaceStorageVersionStatus(param: InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, options?: Configuration): Promise { + public replaceStorageVersionStatus(param: InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceStorageVersionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -37616,28 +37617,28 @@ export class ObjectLogsApi { /** * @param param the request object */ - public logFileHandlerWithHttpInfo(param: LogsApiLogFileHandlerRequest, options?: Configuration): Promise> { + public logFileHandlerWithHttpInfo(param: LogsApiLogFileHandlerRequest, options?: ConfigurationOptions): Promise> { return this.api.logFileHandlerWithHttpInfo(param.logpath, options).toPromise(); } /** * @param param the request object */ - public logFileHandler(param: LogsApiLogFileHandlerRequest, options?: Configuration): Promise { + public logFileHandler(param: LogsApiLogFileHandlerRequest, options?: ConfigurationOptions): Promise { return this.api.logFileHandler(param.logpath, options).toPromise(); } /** * @param param the request object */ - public logFileListHandlerWithHttpInfo(param: LogsApiLogFileListHandlerRequest = {}, options?: Configuration): Promise> { + public logFileListHandlerWithHttpInfo(param: LogsApiLogFileListHandlerRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.logFileListHandlerWithHttpInfo( options).toPromise(); } /** * @param param the request object */ - public logFileListHandler(param: LogsApiLogFileListHandlerRequest = {}, options?: Configuration): Promise { + public logFileListHandler(param: LogsApiLogFileListHandlerRequest = {}, options?: ConfigurationOptions): Promise { return this.api.logFileListHandler( options).toPromise(); } @@ -37660,7 +37661,7 @@ export class ObjectNetworkingApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: NetworkingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: NetworkingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -37668,7 +37669,7 @@ export class ObjectNetworkingApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: NetworkingApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: NetworkingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -39264,7 +39265,7 @@ export class ObjectNetworkingV1Api { * create an IngressClass * @param param the request object */ - public createIngressClassWithHttpInfo(param: NetworkingV1ApiCreateIngressClassRequest, options?: Configuration): Promise> { + public createIngressClassWithHttpInfo(param: NetworkingV1ApiCreateIngressClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createIngressClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39272,7 +39273,7 @@ export class ObjectNetworkingV1Api { * create an IngressClass * @param param the request object */ - public createIngressClass(param: NetworkingV1ApiCreateIngressClassRequest, options?: Configuration): Promise { + public createIngressClass(param: NetworkingV1ApiCreateIngressClassRequest, options?: ConfigurationOptions): Promise { return this.api.createIngressClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39280,7 +39281,7 @@ export class ObjectNetworkingV1Api { * create an Ingress * @param param the request object */ - public createNamespacedIngressWithHttpInfo(param: NetworkingV1ApiCreateNamespacedIngressRequest, options?: Configuration): Promise> { + public createNamespacedIngressWithHttpInfo(param: NetworkingV1ApiCreateNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedIngressWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39288,7 +39289,7 @@ export class ObjectNetworkingV1Api { * create an Ingress * @param param the request object */ - public createNamespacedIngress(param: NetworkingV1ApiCreateNamespacedIngressRequest, options?: Configuration): Promise { + public createNamespacedIngress(param: NetworkingV1ApiCreateNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedIngress(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39296,7 +39297,7 @@ export class ObjectNetworkingV1Api { * create a NetworkPolicy * @param param the request object */ - public createNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public createNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39304,7 +39305,7 @@ export class ObjectNetworkingV1Api { * create a NetworkPolicy * @param param the request object */ - public createNamespacedNetworkPolicy(param: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public createNamespacedNetworkPolicy(param: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedNetworkPolicy(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39312,7 +39313,7 @@ export class ObjectNetworkingV1Api { * delete collection of IngressClass * @param param the request object */ - public deleteCollectionIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteCollectionIngressClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteCollectionIngressClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionIngressClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39320,7 +39321,7 @@ export class ObjectNetworkingV1Api { * delete collection of IngressClass * @param param the request object */ - public deleteCollectionIngressClass(param: NetworkingV1ApiDeleteCollectionIngressClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionIngressClass(param: NetworkingV1ApiDeleteCollectionIngressClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionIngressClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39328,7 +39329,7 @@ export class ObjectNetworkingV1Api { * delete collection of Ingress * @param param the request object */ - public deleteCollectionNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedIngressWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39336,7 +39337,7 @@ export class ObjectNetworkingV1Api { * delete collection of Ingress * @param param the request object */ - public deleteCollectionNamespacedIngress(param: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedIngress(param: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedIngress(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39344,7 +39345,7 @@ export class ObjectNetworkingV1Api { * delete collection of NetworkPolicy * @param param the request object */ - public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39352,7 +39353,7 @@ export class ObjectNetworkingV1Api { * delete collection of NetworkPolicy * @param param the request object */ - public deleteCollectionNamespacedNetworkPolicy(param: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedNetworkPolicy(param: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedNetworkPolicy(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -39360,7 +39361,7 @@ export class ObjectNetworkingV1Api { * delete an IngressClass * @param param the request object */ - public deleteIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteIngressClassRequest, options?: Configuration): Promise> { + public deleteIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteIngressClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteIngressClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39368,7 +39369,7 @@ export class ObjectNetworkingV1Api { * delete an IngressClass * @param param the request object */ - public deleteIngressClass(param: NetworkingV1ApiDeleteIngressClassRequest, options?: Configuration): Promise { + public deleteIngressClass(param: NetworkingV1ApiDeleteIngressClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteIngressClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39376,7 +39377,7 @@ export class ObjectNetworkingV1Api { * delete an Ingress * @param param the request object */ - public deleteNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedIngressRequest, options?: Configuration): Promise> { + public deleteNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedIngressWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39384,7 +39385,7 @@ export class ObjectNetworkingV1Api { * delete an Ingress * @param param the request object */ - public deleteNamespacedIngress(param: NetworkingV1ApiDeleteNamespacedIngressRequest, options?: Configuration): Promise { + public deleteNamespacedIngress(param: NetworkingV1ApiDeleteNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedIngress(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39392,7 +39393,7 @@ export class ObjectNetworkingV1Api { * delete a NetworkPolicy * @param param the request object */ - public deleteNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public deleteNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39400,7 +39401,7 @@ export class ObjectNetworkingV1Api { * delete a NetworkPolicy * @param param the request object */ - public deleteNamespacedNetworkPolicy(param: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public deleteNamespacedNetworkPolicy(param: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedNetworkPolicy(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -39408,7 +39409,7 @@ export class ObjectNetworkingV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: NetworkingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: NetworkingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -39416,7 +39417,7 @@ export class ObjectNetworkingV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: NetworkingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: NetworkingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -39424,7 +39425,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind IngressClass * @param param the request object */ - public listIngressClassWithHttpInfo(param: NetworkingV1ApiListIngressClassRequest = {}, options?: Configuration): Promise> { + public listIngressClassWithHttpInfo(param: NetworkingV1ApiListIngressClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listIngressClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39432,7 +39433,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind IngressClass * @param param the request object */ - public listIngressClass(param: NetworkingV1ApiListIngressClassRequest = {}, options?: Configuration): Promise { + public listIngressClass(param: NetworkingV1ApiListIngressClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listIngressClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39440,7 +39441,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind Ingress * @param param the request object */ - public listIngressForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListIngressForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listIngressForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListIngressForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listIngressForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39448,7 +39449,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind Ingress * @param param the request object */ - public listIngressForAllNamespaces(param: NetworkingV1ApiListIngressForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listIngressForAllNamespaces(param: NetworkingV1ApiListIngressForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listIngressForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39456,7 +39457,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind Ingress * @param param the request object */ - public listNamespacedIngressWithHttpInfo(param: NetworkingV1ApiListNamespacedIngressRequest, options?: Configuration): Promise> { + public listNamespacedIngressWithHttpInfo(param: NetworkingV1ApiListNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedIngressWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39464,7 +39465,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind Ingress * @param param the request object */ - public listNamespacedIngress(param: NetworkingV1ApiListNamespacedIngressRequest, options?: Configuration): Promise { + public listNamespacedIngress(param: NetworkingV1ApiListNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedIngress(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39472,7 +39473,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind NetworkPolicy * @param param the request object */ - public listNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiListNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public listNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiListNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39480,7 +39481,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind NetworkPolicy * @param param the request object */ - public listNamespacedNetworkPolicy(param: NetworkingV1ApiListNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public listNamespacedNetworkPolicy(param: NetworkingV1ApiListNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedNetworkPolicy(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39488,7 +39489,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind NetworkPolicy * @param param the request object */ - public listNetworkPolicyForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listNetworkPolicyForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39496,7 +39497,7 @@ export class ObjectNetworkingV1Api { * list or watch objects of kind NetworkPolicy * @param param the request object */ - public listNetworkPolicyForAllNamespaces(param: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listNetworkPolicyForAllNamespaces(param: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listNetworkPolicyForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -39504,7 +39505,7 @@ export class ObjectNetworkingV1Api { * partially update the specified IngressClass * @param param the request object */ - public patchIngressClassWithHttpInfo(param: NetworkingV1ApiPatchIngressClassRequest, options?: Configuration): Promise> { + public patchIngressClassWithHttpInfo(param: NetworkingV1ApiPatchIngressClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchIngressClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39512,7 +39513,7 @@ export class ObjectNetworkingV1Api { * partially update the specified IngressClass * @param param the request object */ - public patchIngressClass(param: NetworkingV1ApiPatchIngressClassRequest, options?: Configuration): Promise { + public patchIngressClass(param: NetworkingV1ApiPatchIngressClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchIngressClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39520,7 +39521,7 @@ export class ObjectNetworkingV1Api { * partially update the specified Ingress * @param param the request object */ - public patchNamespacedIngressWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressRequest, options?: Configuration): Promise> { + public patchNamespacedIngressWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedIngressWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39528,7 +39529,7 @@ export class ObjectNetworkingV1Api { * partially update the specified Ingress * @param param the request object */ - public patchNamespacedIngress(param: NetworkingV1ApiPatchNamespacedIngressRequest, options?: Configuration): Promise { + public patchNamespacedIngress(param: NetworkingV1ApiPatchNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedIngress(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39536,7 +39537,7 @@ export class ObjectNetworkingV1Api { * partially update status of the specified Ingress * @param param the request object */ - public patchNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressStatusRequest, options?: Configuration): Promise> { + public patchNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39544,7 +39545,7 @@ export class ObjectNetworkingV1Api { * partially update status of the specified Ingress * @param param the request object */ - public patchNamespacedIngressStatus(param: NetworkingV1ApiPatchNamespacedIngressStatusRequest, options?: Configuration): Promise { + public patchNamespacedIngressStatus(param: NetworkingV1ApiPatchNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedIngressStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39552,7 +39553,7 @@ export class ObjectNetworkingV1Api { * partially update the specified NetworkPolicy * @param param the request object */ - public patchNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public patchNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39560,7 +39561,7 @@ export class ObjectNetworkingV1Api { * partially update the specified NetworkPolicy * @param param the request object */ - public patchNamespacedNetworkPolicy(param: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public patchNamespacedNetworkPolicy(param: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedNetworkPolicy(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -39568,7 +39569,7 @@ export class ObjectNetworkingV1Api { * read the specified IngressClass * @param param the request object */ - public readIngressClassWithHttpInfo(param: NetworkingV1ApiReadIngressClassRequest, options?: Configuration): Promise> { + public readIngressClassWithHttpInfo(param: NetworkingV1ApiReadIngressClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readIngressClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -39576,7 +39577,7 @@ export class ObjectNetworkingV1Api { * read the specified IngressClass * @param param the request object */ - public readIngressClass(param: NetworkingV1ApiReadIngressClassRequest, options?: Configuration): Promise { + public readIngressClass(param: NetworkingV1ApiReadIngressClassRequest, options?: ConfigurationOptions): Promise { return this.api.readIngressClass(param.name, param.pretty, options).toPromise(); } @@ -39584,7 +39585,7 @@ export class ObjectNetworkingV1Api { * read the specified Ingress * @param param the request object */ - public readNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressRequest, options?: Configuration): Promise> { + public readNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedIngressWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39592,7 +39593,7 @@ export class ObjectNetworkingV1Api { * read the specified Ingress * @param param the request object */ - public readNamespacedIngress(param: NetworkingV1ApiReadNamespacedIngressRequest, options?: Configuration): Promise { + public readNamespacedIngress(param: NetworkingV1ApiReadNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedIngress(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39600,7 +39601,7 @@ export class ObjectNetworkingV1Api { * read status of the specified Ingress * @param param the request object */ - public readNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressStatusRequest, options?: Configuration): Promise> { + public readNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39608,7 +39609,7 @@ export class ObjectNetworkingV1Api { * read status of the specified Ingress * @param param the request object */ - public readNamespacedIngressStatus(param: NetworkingV1ApiReadNamespacedIngressStatusRequest, options?: Configuration): Promise { + public readNamespacedIngressStatus(param: NetworkingV1ApiReadNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedIngressStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39616,7 +39617,7 @@ export class ObjectNetworkingV1Api { * read the specified NetworkPolicy * @param param the request object */ - public readNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReadNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public readNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReadNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39624,7 +39625,7 @@ export class ObjectNetworkingV1Api { * read the specified NetworkPolicy * @param param the request object */ - public readNamespacedNetworkPolicy(param: NetworkingV1ApiReadNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public readNamespacedNetworkPolicy(param: NetworkingV1ApiReadNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedNetworkPolicy(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -39632,7 +39633,7 @@ export class ObjectNetworkingV1Api { * replace the specified IngressClass * @param param the request object */ - public replaceIngressClassWithHttpInfo(param: NetworkingV1ApiReplaceIngressClassRequest, options?: Configuration): Promise> { + public replaceIngressClassWithHttpInfo(param: NetworkingV1ApiReplaceIngressClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceIngressClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39640,7 +39641,7 @@ export class ObjectNetworkingV1Api { * replace the specified IngressClass * @param param the request object */ - public replaceIngressClass(param: NetworkingV1ApiReplaceIngressClassRequest, options?: Configuration): Promise { + public replaceIngressClass(param: NetworkingV1ApiReplaceIngressClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceIngressClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39648,7 +39649,7 @@ export class ObjectNetworkingV1Api { * replace the specified Ingress * @param param the request object */ - public replaceNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressRequest, options?: Configuration): Promise> { + public replaceNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedIngressWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39656,7 +39657,7 @@ export class ObjectNetworkingV1Api { * replace the specified Ingress * @param param the request object */ - public replaceNamespacedIngress(param: NetworkingV1ApiReplaceNamespacedIngressRequest, options?: Configuration): Promise { + public replaceNamespacedIngress(param: NetworkingV1ApiReplaceNamespacedIngressRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedIngress(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39664,7 +39665,7 @@ export class ObjectNetworkingV1Api { * replace status of the specified Ingress * @param param the request object */ - public replaceNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39672,7 +39673,7 @@ export class ObjectNetworkingV1Api { * replace status of the specified Ingress * @param param the request object */ - public replaceNamespacedIngressStatus(param: NetworkingV1ApiReplaceNamespacedIngressStatusRequest, options?: Configuration): Promise { + public replaceNamespacedIngressStatus(param: NetworkingV1ApiReplaceNamespacedIngressStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedIngressStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39680,7 +39681,7 @@ export class ObjectNetworkingV1Api { * replace the specified NetworkPolicy * @param param the request object */ - public replaceNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + public replaceNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -39688,7 +39689,7 @@ export class ObjectNetworkingV1Api { * replace the specified NetworkPolicy * @param param the request object */ - public replaceNamespacedNetworkPolicy(param: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, options?: Configuration): Promise { + public replaceNamespacedNetworkPolicy(param: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedNetworkPolicy(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40611,7 +40612,7 @@ export class ObjectNetworkingV1beta1Api { * create an IPAddress * @param param the request object */ - public createIPAddressWithHttpInfo(param: NetworkingV1beta1ApiCreateIPAddressRequest, options?: Configuration): Promise> { + public createIPAddressWithHttpInfo(param: NetworkingV1beta1ApiCreateIPAddressRequest, options?: ConfigurationOptions): Promise> { return this.api.createIPAddressWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40619,7 +40620,7 @@ export class ObjectNetworkingV1beta1Api { * create an IPAddress * @param param the request object */ - public createIPAddress(param: NetworkingV1beta1ApiCreateIPAddressRequest, options?: Configuration): Promise { + public createIPAddress(param: NetworkingV1beta1ApiCreateIPAddressRequest, options?: ConfigurationOptions): Promise { return this.api.createIPAddress(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40627,7 +40628,7 @@ export class ObjectNetworkingV1beta1Api { * create a ServiceCIDR * @param param the request object */ - public createServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiCreateServiceCIDRRequest, options?: Configuration): Promise> { + public createServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiCreateServiceCIDRRequest, options?: ConfigurationOptions): Promise> { return this.api.createServiceCIDRWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40635,7 +40636,7 @@ export class ObjectNetworkingV1beta1Api { * create a ServiceCIDR * @param param the request object */ - public createServiceCIDR(param: NetworkingV1beta1ApiCreateServiceCIDRRequest, options?: Configuration): Promise { + public createServiceCIDR(param: NetworkingV1beta1ApiCreateServiceCIDRRequest, options?: ConfigurationOptions): Promise { return this.api.createServiceCIDR(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40643,7 +40644,7 @@ export class ObjectNetworkingV1beta1Api { * delete collection of IPAddress * @param param the request object */ - public deleteCollectionIPAddressWithHttpInfo(param: NetworkingV1beta1ApiDeleteCollectionIPAddressRequest = {}, options?: Configuration): Promise> { + public deleteCollectionIPAddressWithHttpInfo(param: NetworkingV1beta1ApiDeleteCollectionIPAddressRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionIPAddressWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -40651,7 +40652,7 @@ export class ObjectNetworkingV1beta1Api { * delete collection of IPAddress * @param param the request object */ - public deleteCollectionIPAddress(param: NetworkingV1beta1ApiDeleteCollectionIPAddressRequest = {}, options?: Configuration): Promise { + public deleteCollectionIPAddress(param: NetworkingV1beta1ApiDeleteCollectionIPAddressRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionIPAddress(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -40659,7 +40660,7 @@ export class ObjectNetworkingV1beta1Api { * delete collection of ServiceCIDR * @param param the request object */ - public deleteCollectionServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest = {}, options?: Configuration): Promise> { + public deleteCollectionServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionServiceCIDRWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -40667,7 +40668,7 @@ export class ObjectNetworkingV1beta1Api { * delete collection of ServiceCIDR * @param param the request object */ - public deleteCollectionServiceCIDR(param: NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest = {}, options?: Configuration): Promise { + public deleteCollectionServiceCIDR(param: NetworkingV1beta1ApiDeleteCollectionServiceCIDRRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionServiceCIDR(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -40675,7 +40676,7 @@ export class ObjectNetworkingV1beta1Api { * delete an IPAddress * @param param the request object */ - public deleteIPAddressWithHttpInfo(param: NetworkingV1beta1ApiDeleteIPAddressRequest, options?: Configuration): Promise> { + public deleteIPAddressWithHttpInfo(param: NetworkingV1beta1ApiDeleteIPAddressRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteIPAddressWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -40683,7 +40684,7 @@ export class ObjectNetworkingV1beta1Api { * delete an IPAddress * @param param the request object */ - public deleteIPAddress(param: NetworkingV1beta1ApiDeleteIPAddressRequest, options?: Configuration): Promise { + public deleteIPAddress(param: NetworkingV1beta1ApiDeleteIPAddressRequest, options?: ConfigurationOptions): Promise { return this.api.deleteIPAddress(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -40691,7 +40692,7 @@ export class ObjectNetworkingV1beta1Api { * delete a ServiceCIDR * @param param the request object */ - public deleteServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiDeleteServiceCIDRRequest, options?: Configuration): Promise> { + public deleteServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiDeleteServiceCIDRRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteServiceCIDRWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -40699,7 +40700,7 @@ export class ObjectNetworkingV1beta1Api { * delete a ServiceCIDR * @param param the request object */ - public deleteServiceCIDR(param: NetworkingV1beta1ApiDeleteServiceCIDRRequest, options?: Configuration): Promise { + public deleteServiceCIDR(param: NetworkingV1beta1ApiDeleteServiceCIDRRequest, options?: ConfigurationOptions): Promise { return this.api.deleteServiceCIDR(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -40707,7 +40708,7 @@ export class ObjectNetworkingV1beta1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: NetworkingV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: NetworkingV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -40715,7 +40716,7 @@ export class ObjectNetworkingV1beta1Api { * get available resources * @param param the request object */ - public getAPIResources(param: NetworkingV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: NetworkingV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -40723,7 +40724,7 @@ export class ObjectNetworkingV1beta1Api { * list or watch objects of kind IPAddress * @param param the request object */ - public listIPAddressWithHttpInfo(param: NetworkingV1beta1ApiListIPAddressRequest = {}, options?: Configuration): Promise> { + public listIPAddressWithHttpInfo(param: NetworkingV1beta1ApiListIPAddressRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listIPAddressWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -40731,7 +40732,7 @@ export class ObjectNetworkingV1beta1Api { * list or watch objects of kind IPAddress * @param param the request object */ - public listIPAddress(param: NetworkingV1beta1ApiListIPAddressRequest = {}, options?: Configuration): Promise { + public listIPAddress(param: NetworkingV1beta1ApiListIPAddressRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listIPAddress(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -40739,7 +40740,7 @@ export class ObjectNetworkingV1beta1Api { * list or watch objects of kind ServiceCIDR * @param param the request object */ - public listServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiListServiceCIDRRequest = {}, options?: Configuration): Promise> { + public listServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiListServiceCIDRRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listServiceCIDRWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -40747,7 +40748,7 @@ export class ObjectNetworkingV1beta1Api { * list or watch objects of kind ServiceCIDR * @param param the request object */ - public listServiceCIDR(param: NetworkingV1beta1ApiListServiceCIDRRequest = {}, options?: Configuration): Promise { + public listServiceCIDR(param: NetworkingV1beta1ApiListServiceCIDRRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listServiceCIDR(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -40755,7 +40756,7 @@ export class ObjectNetworkingV1beta1Api { * partially update the specified IPAddress * @param param the request object */ - public patchIPAddressWithHttpInfo(param: NetworkingV1beta1ApiPatchIPAddressRequest, options?: Configuration): Promise> { + public patchIPAddressWithHttpInfo(param: NetworkingV1beta1ApiPatchIPAddressRequest, options?: ConfigurationOptions): Promise> { return this.api.patchIPAddressWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40763,7 +40764,7 @@ export class ObjectNetworkingV1beta1Api { * partially update the specified IPAddress * @param param the request object */ - public patchIPAddress(param: NetworkingV1beta1ApiPatchIPAddressRequest, options?: Configuration): Promise { + public patchIPAddress(param: NetworkingV1beta1ApiPatchIPAddressRequest, options?: ConfigurationOptions): Promise { return this.api.patchIPAddress(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40771,7 +40772,7 @@ export class ObjectNetworkingV1beta1Api { * partially update the specified ServiceCIDR * @param param the request object */ - public patchServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiPatchServiceCIDRRequest, options?: Configuration): Promise> { + public patchServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiPatchServiceCIDRRequest, options?: ConfigurationOptions): Promise> { return this.api.patchServiceCIDRWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40779,7 +40780,7 @@ export class ObjectNetworkingV1beta1Api { * partially update the specified ServiceCIDR * @param param the request object */ - public patchServiceCIDR(param: NetworkingV1beta1ApiPatchServiceCIDRRequest, options?: Configuration): Promise { + public patchServiceCIDR(param: NetworkingV1beta1ApiPatchServiceCIDRRequest, options?: ConfigurationOptions): Promise { return this.api.patchServiceCIDR(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40787,7 +40788,7 @@ export class ObjectNetworkingV1beta1Api { * partially update status of the specified ServiceCIDR * @param param the request object */ - public patchServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, options?: Configuration): Promise> { + public patchServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchServiceCIDRStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40795,7 +40796,7 @@ export class ObjectNetworkingV1beta1Api { * partially update status of the specified ServiceCIDR * @param param the request object */ - public patchServiceCIDRStatus(param: NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, options?: Configuration): Promise { + public patchServiceCIDRStatus(param: NetworkingV1beta1ApiPatchServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchServiceCIDRStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -40803,7 +40804,7 @@ export class ObjectNetworkingV1beta1Api { * read the specified IPAddress * @param param the request object */ - public readIPAddressWithHttpInfo(param: NetworkingV1beta1ApiReadIPAddressRequest, options?: Configuration): Promise> { + public readIPAddressWithHttpInfo(param: NetworkingV1beta1ApiReadIPAddressRequest, options?: ConfigurationOptions): Promise> { return this.api.readIPAddressWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -40811,7 +40812,7 @@ export class ObjectNetworkingV1beta1Api { * read the specified IPAddress * @param param the request object */ - public readIPAddress(param: NetworkingV1beta1ApiReadIPAddressRequest, options?: Configuration): Promise { + public readIPAddress(param: NetworkingV1beta1ApiReadIPAddressRequest, options?: ConfigurationOptions): Promise { return this.api.readIPAddress(param.name, param.pretty, options).toPromise(); } @@ -40819,7 +40820,7 @@ export class ObjectNetworkingV1beta1Api { * read the specified ServiceCIDR * @param param the request object */ - public readServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiReadServiceCIDRRequest, options?: Configuration): Promise> { + public readServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiReadServiceCIDRRequest, options?: ConfigurationOptions): Promise> { return this.api.readServiceCIDRWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -40827,7 +40828,7 @@ export class ObjectNetworkingV1beta1Api { * read the specified ServiceCIDR * @param param the request object */ - public readServiceCIDR(param: NetworkingV1beta1ApiReadServiceCIDRRequest, options?: Configuration): Promise { + public readServiceCIDR(param: NetworkingV1beta1ApiReadServiceCIDRRequest, options?: ConfigurationOptions): Promise { return this.api.readServiceCIDR(param.name, param.pretty, options).toPromise(); } @@ -40835,7 +40836,7 @@ export class ObjectNetworkingV1beta1Api { * read status of the specified ServiceCIDR * @param param the request object */ - public readServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiReadServiceCIDRStatusRequest, options?: Configuration): Promise> { + public readServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiReadServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readServiceCIDRStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -40843,7 +40844,7 @@ export class ObjectNetworkingV1beta1Api { * read status of the specified ServiceCIDR * @param param the request object */ - public readServiceCIDRStatus(param: NetworkingV1beta1ApiReadServiceCIDRStatusRequest, options?: Configuration): Promise { + public readServiceCIDRStatus(param: NetworkingV1beta1ApiReadServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readServiceCIDRStatus(param.name, param.pretty, options).toPromise(); } @@ -40851,7 +40852,7 @@ export class ObjectNetworkingV1beta1Api { * replace the specified IPAddress * @param param the request object */ - public replaceIPAddressWithHttpInfo(param: NetworkingV1beta1ApiReplaceIPAddressRequest, options?: Configuration): Promise> { + public replaceIPAddressWithHttpInfo(param: NetworkingV1beta1ApiReplaceIPAddressRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceIPAddressWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40859,7 +40860,7 @@ export class ObjectNetworkingV1beta1Api { * replace the specified IPAddress * @param param the request object */ - public replaceIPAddress(param: NetworkingV1beta1ApiReplaceIPAddressRequest, options?: Configuration): Promise { + public replaceIPAddress(param: NetworkingV1beta1ApiReplaceIPAddressRequest, options?: ConfigurationOptions): Promise { return this.api.replaceIPAddress(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40867,7 +40868,7 @@ export class ObjectNetworkingV1beta1Api { * replace the specified ServiceCIDR * @param param the request object */ - public replaceServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiReplaceServiceCIDRRequest, options?: Configuration): Promise> { + public replaceServiceCIDRWithHttpInfo(param: NetworkingV1beta1ApiReplaceServiceCIDRRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceServiceCIDRWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40875,7 +40876,7 @@ export class ObjectNetworkingV1beta1Api { * replace the specified ServiceCIDR * @param param the request object */ - public replaceServiceCIDR(param: NetworkingV1beta1ApiReplaceServiceCIDRRequest, options?: Configuration): Promise { + public replaceServiceCIDR(param: NetworkingV1beta1ApiReplaceServiceCIDRRequest, options?: ConfigurationOptions): Promise { return this.api.replaceServiceCIDR(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40883,7 +40884,7 @@ export class ObjectNetworkingV1beta1Api { * replace status of the specified ServiceCIDR * @param param the request object */ - public replaceServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, options?: Configuration): Promise> { + public replaceServiceCIDRStatusWithHttpInfo(param: NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceServiceCIDRStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40891,7 +40892,7 @@ export class ObjectNetworkingV1beta1Api { * replace status of the specified ServiceCIDR * @param param the request object */ - public replaceServiceCIDRStatus(param: NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, options?: Configuration): Promise { + public replaceServiceCIDRStatus(param: NetworkingV1beta1ApiReplaceServiceCIDRStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceServiceCIDRStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -40914,7 +40915,7 @@ export class ObjectNodeApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: NodeApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: NodeApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -40922,7 +40923,7 @@ export class ObjectNodeApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: NodeApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: NodeApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -41339,7 +41340,7 @@ export class ObjectNodeV1Api { * create a RuntimeClass * @param param the request object */ - public createRuntimeClassWithHttpInfo(param: NodeV1ApiCreateRuntimeClassRequest, options?: Configuration): Promise> { + public createRuntimeClassWithHttpInfo(param: NodeV1ApiCreateRuntimeClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createRuntimeClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -41347,7 +41348,7 @@ export class ObjectNodeV1Api { * create a RuntimeClass * @param param the request object */ - public createRuntimeClass(param: NodeV1ApiCreateRuntimeClassRequest, options?: Configuration): Promise { + public createRuntimeClass(param: NodeV1ApiCreateRuntimeClassRequest, options?: ConfigurationOptions): Promise { return this.api.createRuntimeClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -41355,7 +41356,7 @@ export class ObjectNodeV1Api { * delete collection of RuntimeClass * @param param the request object */ - public deleteCollectionRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteCollectionRuntimeClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteCollectionRuntimeClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionRuntimeClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -41363,7 +41364,7 @@ export class ObjectNodeV1Api { * delete collection of RuntimeClass * @param param the request object */ - public deleteCollectionRuntimeClass(param: NodeV1ApiDeleteCollectionRuntimeClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionRuntimeClass(param: NodeV1ApiDeleteCollectionRuntimeClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionRuntimeClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -41371,7 +41372,7 @@ export class ObjectNodeV1Api { * delete a RuntimeClass * @param param the request object */ - public deleteRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteRuntimeClassRequest, options?: Configuration): Promise> { + public deleteRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteRuntimeClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteRuntimeClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -41379,7 +41380,7 @@ export class ObjectNodeV1Api { * delete a RuntimeClass * @param param the request object */ - public deleteRuntimeClass(param: NodeV1ApiDeleteRuntimeClassRequest, options?: Configuration): Promise { + public deleteRuntimeClass(param: NodeV1ApiDeleteRuntimeClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteRuntimeClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -41387,7 +41388,7 @@ export class ObjectNodeV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: NodeV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: NodeV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -41395,7 +41396,7 @@ export class ObjectNodeV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: NodeV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: NodeV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -41403,7 +41404,7 @@ export class ObjectNodeV1Api { * list or watch objects of kind RuntimeClass * @param param the request object */ - public listRuntimeClassWithHttpInfo(param: NodeV1ApiListRuntimeClassRequest = {}, options?: Configuration): Promise> { + public listRuntimeClassWithHttpInfo(param: NodeV1ApiListRuntimeClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listRuntimeClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -41411,7 +41412,7 @@ export class ObjectNodeV1Api { * list or watch objects of kind RuntimeClass * @param param the request object */ - public listRuntimeClass(param: NodeV1ApiListRuntimeClassRequest = {}, options?: Configuration): Promise { + public listRuntimeClass(param: NodeV1ApiListRuntimeClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listRuntimeClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -41419,7 +41420,7 @@ export class ObjectNodeV1Api { * partially update the specified RuntimeClass * @param param the request object */ - public patchRuntimeClassWithHttpInfo(param: NodeV1ApiPatchRuntimeClassRequest, options?: Configuration): Promise> { + public patchRuntimeClassWithHttpInfo(param: NodeV1ApiPatchRuntimeClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -41427,7 +41428,7 @@ export class ObjectNodeV1Api { * partially update the specified RuntimeClass * @param param the request object */ - public patchRuntimeClass(param: NodeV1ApiPatchRuntimeClassRequest, options?: Configuration): Promise { + public patchRuntimeClass(param: NodeV1ApiPatchRuntimeClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchRuntimeClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -41435,7 +41436,7 @@ export class ObjectNodeV1Api { * read the specified RuntimeClass * @param param the request object */ - public readRuntimeClassWithHttpInfo(param: NodeV1ApiReadRuntimeClassRequest, options?: Configuration): Promise> { + public readRuntimeClassWithHttpInfo(param: NodeV1ApiReadRuntimeClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readRuntimeClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -41443,7 +41444,7 @@ export class ObjectNodeV1Api { * read the specified RuntimeClass * @param param the request object */ - public readRuntimeClass(param: NodeV1ApiReadRuntimeClassRequest, options?: Configuration): Promise { + public readRuntimeClass(param: NodeV1ApiReadRuntimeClassRequest, options?: ConfigurationOptions): Promise { return this.api.readRuntimeClass(param.name, param.pretty, options).toPromise(); } @@ -41451,7 +41452,7 @@ export class ObjectNodeV1Api { * replace the specified RuntimeClass * @param param the request object */ - public replaceRuntimeClassWithHttpInfo(param: NodeV1ApiReplaceRuntimeClassRequest, options?: Configuration): Promise> { + public replaceRuntimeClassWithHttpInfo(param: NodeV1ApiReplaceRuntimeClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -41459,7 +41460,7 @@ export class ObjectNodeV1Api { * replace the specified RuntimeClass * @param param the request object */ - public replaceRuntimeClass(param: NodeV1ApiReplaceRuntimeClassRequest, options?: Configuration): Promise { + public replaceRuntimeClass(param: NodeV1ApiReplaceRuntimeClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceRuntimeClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -41482,7 +41483,7 @@ export class ObjectOpenidApi { * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @param param the request object */ - public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(param: OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest = {}, options?: Configuration): Promise> { + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(param: OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo( options).toPromise(); } @@ -41490,7 +41491,7 @@ export class ObjectOpenidApi { * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @param param the request object */ - public getServiceAccountIssuerOpenIDKeyset(param: OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest = {}, options?: Configuration): Promise { + public getServiceAccountIssuerOpenIDKeyset(param: OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getServiceAccountIssuerOpenIDKeyset( options).toPromise(); } @@ -41513,7 +41514,7 @@ export class ObjectPolicyApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: PolicyApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: PolicyApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -41521,7 +41522,7 @@ export class ObjectPolicyApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: PolicyApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: PolicyApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -42200,7 +42201,7 @@ export class ObjectPolicyV1Api { * create a PodDisruptionBudget * @param param the request object */ - public createNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public createNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42208,7 +42209,7 @@ export class ObjectPolicyV1Api { * create a PodDisruptionBudget * @param param the request object */ - public createNamespacedPodDisruptionBudget(param: PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public createNamespacedPodDisruptionBudget(param: PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedPodDisruptionBudget(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42216,7 +42217,7 @@ export class ObjectPolicyV1Api { * delete collection of PodDisruptionBudget * @param param the request object */ - public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -42224,7 +42225,7 @@ export class ObjectPolicyV1Api { * delete collection of PodDisruptionBudget * @param param the request object */ - public deleteCollectionNamespacedPodDisruptionBudget(param: PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedPodDisruptionBudget(param: PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedPodDisruptionBudget(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -42232,7 +42233,7 @@ export class ObjectPolicyV1Api { * delete a PodDisruptionBudget * @param param the request object */ - public deleteNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -42240,7 +42241,7 @@ export class ObjectPolicyV1Api { * delete a PodDisruptionBudget * @param param the request object */ - public deleteNamespacedPodDisruptionBudget(param: PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public deleteNamespacedPodDisruptionBudget(param: PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -42248,7 +42249,7 @@ export class ObjectPolicyV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: PolicyV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: PolicyV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -42256,7 +42257,7 @@ export class ObjectPolicyV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: PolicyV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: PolicyV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -42264,7 +42265,7 @@ export class ObjectPolicyV1Api { * list or watch objects of kind PodDisruptionBudget * @param param the request object */ - public listNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public listNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -42272,7 +42273,7 @@ export class ObjectPolicyV1Api { * list or watch objects of kind PodDisruptionBudget * @param param the request object */ - public listNamespacedPodDisruptionBudget(param: PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public listNamespacedPodDisruptionBudget(param: PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedPodDisruptionBudget(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -42280,7 +42281,7 @@ export class ObjectPolicyV1Api { * list or watch objects of kind PodDisruptionBudget * @param param the request object */ - public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param: PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param: PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -42288,7 +42289,7 @@ export class ObjectPolicyV1Api { * list or watch objects of kind PodDisruptionBudget * @param param the request object */ - public listPodDisruptionBudgetForAllNamespaces(param: PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listPodDisruptionBudgetForAllNamespaces(param: PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPodDisruptionBudgetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -42296,7 +42297,7 @@ export class ObjectPolicyV1Api { * partially update the specified PodDisruptionBudget * @param param the request object */ - public patchNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public patchNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -42304,7 +42305,7 @@ export class ObjectPolicyV1Api { * partially update the specified PodDisruptionBudget * @param param the request object */ - public patchNamespacedPodDisruptionBudget(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public patchNamespacedPodDisruptionBudget(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -42312,7 +42313,7 @@ export class ObjectPolicyV1Api { * partially update status of the specified PodDisruptionBudget * @param param the request object */ - public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -42320,7 +42321,7 @@ export class ObjectPolicyV1Api { * partially update status of the specified PodDisruptionBudget * @param param the request object */ - public patchNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise { + public patchNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -42328,7 +42329,7 @@ export class ObjectPolicyV1Api { * read the specified PodDisruptionBudget * @param param the request object */ - public readNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public readNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -42336,7 +42337,7 @@ export class ObjectPolicyV1Api { * read the specified PodDisruptionBudget * @param param the request object */ - public readNamespacedPodDisruptionBudget(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public readNamespacedPodDisruptionBudget(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -42344,7 +42345,7 @@ export class ObjectPolicyV1Api { * read status of the specified PodDisruptionBudget * @param param the request object */ - public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -42352,7 +42353,7 @@ export class ObjectPolicyV1Api { * read status of the specified PodDisruptionBudget * @param param the request object */ - public readNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise { + public readNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -42360,7 +42361,7 @@ export class ObjectPolicyV1Api { * replace the specified PodDisruptionBudget * @param param the request object */ - public replaceNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42368,7 +42369,7 @@ export class ObjectPolicyV1Api { * replace the specified PodDisruptionBudget * @param param the request object */ - public replaceNamespacedPodDisruptionBudget(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise { + public replaceNamespacedPodDisruptionBudget(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42376,7 +42377,7 @@ export class ObjectPolicyV1Api { * replace status of the specified PodDisruptionBudget * @param param the request object */ - public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42384,7 +42385,7 @@ export class ObjectPolicyV1Api { * replace status of the specified PodDisruptionBudget * @param param the request object */ - public replaceNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise { + public replaceNamespacedPodDisruptionBudgetStatus(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -42407,7 +42408,7 @@ export class ObjectRbacAuthorizationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: RbacAuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: RbacAuthorizationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -42415,7 +42416,7 @@ export class ObjectRbacAuthorizationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: RbacAuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: RbacAuthorizationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -44272,7 +44273,7 @@ export class ObjectRbacAuthorizationV1Api { * create a ClusterRole * @param param the request object */ - public createClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleRequest, options?: Configuration): Promise> { + public createClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.createClusterRoleWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44280,7 +44281,7 @@ export class ObjectRbacAuthorizationV1Api { * create a ClusterRole * @param param the request object */ - public createClusterRole(param: RbacAuthorizationV1ApiCreateClusterRoleRequest, options?: Configuration): Promise { + public createClusterRole(param: RbacAuthorizationV1ApiCreateClusterRoleRequest, options?: ConfigurationOptions): Promise { return this.api.createClusterRole(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44288,7 +44289,7 @@ export class ObjectRbacAuthorizationV1Api { * create a ClusterRoleBinding * @param param the request object */ - public createClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, options?: Configuration): Promise> { + public createClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createClusterRoleBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44296,7 +44297,7 @@ export class ObjectRbacAuthorizationV1Api { * create a ClusterRoleBinding * @param param the request object */ - public createClusterRoleBinding(param: RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, options?: Configuration): Promise { + public createClusterRoleBinding(param: RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createClusterRoleBinding(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44304,7 +44305,7 @@ export class ObjectRbacAuthorizationV1Api { * create a Role * @param param the request object */ - public createNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleRequest, options?: Configuration): Promise> { + public createNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedRoleWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44312,7 +44313,7 @@ export class ObjectRbacAuthorizationV1Api { * create a Role * @param param the request object */ - public createNamespacedRole(param: RbacAuthorizationV1ApiCreateNamespacedRoleRequest, options?: Configuration): Promise { + public createNamespacedRole(param: RbacAuthorizationV1ApiCreateNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedRole(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44320,7 +44321,7 @@ export class ObjectRbacAuthorizationV1Api { * create a RoleBinding * @param param the request object */ - public createNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public createNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedRoleBindingWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44328,7 +44329,7 @@ export class ObjectRbacAuthorizationV1Api { * create a RoleBinding * @param param the request object */ - public createNamespacedRoleBinding(param: RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, options?: Configuration): Promise { + public createNamespacedRoleBinding(param: RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedRoleBinding(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44336,7 +44337,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a ClusterRole * @param param the request object */ - public deleteClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleRequest, options?: Configuration): Promise> { + public deleteClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteClusterRoleWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44344,7 +44345,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a ClusterRole * @param param the request object */ - public deleteClusterRole(param: RbacAuthorizationV1ApiDeleteClusterRoleRequest, options?: Configuration): Promise { + public deleteClusterRole(param: RbacAuthorizationV1ApiDeleteClusterRoleRequest, options?: ConfigurationOptions): Promise { return this.api.deleteClusterRole(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44352,7 +44353,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a ClusterRoleBinding * @param param the request object */ - public deleteClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, options?: Configuration): Promise> { + public deleteClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteClusterRoleBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44360,7 +44361,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a ClusterRoleBinding * @param param the request object */ - public deleteClusterRoleBinding(param: RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, options?: Configuration): Promise { + public deleteClusterRoleBinding(param: RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteClusterRoleBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44368,7 +44369,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of ClusterRole * @param param the request object */ - public deleteCollectionClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest = {}, options?: Configuration): Promise> { + public deleteCollectionClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionClusterRoleWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44376,7 +44377,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of ClusterRole * @param param the request object */ - public deleteCollectionClusterRole(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest = {}, options?: Configuration): Promise { + public deleteCollectionClusterRole(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionClusterRole(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44384,7 +44385,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of ClusterRoleBinding * @param param the request object */ - public deleteCollectionClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + public deleteCollectionClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionClusterRoleBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44392,7 +44393,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of ClusterRoleBinding * @param param the request object */ - public deleteCollectionClusterRoleBinding(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: Configuration): Promise { + public deleteCollectionClusterRoleBinding(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionClusterRoleBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44400,7 +44401,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of Role * @param param the request object */ - public deleteCollectionNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44408,7 +44409,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of Role * @param param the request object */ - public deleteCollectionNamespacedRole(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedRole(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedRole(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44416,7 +44417,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of RoleBinding * @param param the request object */ - public deleteCollectionNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44424,7 +44425,7 @@ export class ObjectRbacAuthorizationV1Api { * delete collection of RoleBinding * @param param the request object */ - public deleteCollectionNamespacedRoleBinding(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedRoleBinding(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedRoleBinding(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -44432,7 +44433,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a Role * @param param the request object */ - public deleteNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, options?: Configuration): Promise> { + public deleteNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44440,7 +44441,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a Role * @param param the request object */ - public deleteNamespacedRole(param: RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, options?: Configuration): Promise { + public deleteNamespacedRole(param: RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedRole(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44448,7 +44449,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a RoleBinding * @param param the request object */ - public deleteNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public deleteNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44456,7 +44457,7 @@ export class ObjectRbacAuthorizationV1Api { * delete a RoleBinding * @param param the request object */ - public deleteNamespacedRoleBinding(param: RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, options?: Configuration): Promise { + public deleteNamespacedRoleBinding(param: RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedRoleBinding(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -44464,7 +44465,7 @@ export class ObjectRbacAuthorizationV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: RbacAuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: RbacAuthorizationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -44472,7 +44473,7 @@ export class ObjectRbacAuthorizationV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: RbacAuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: RbacAuthorizationV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -44480,7 +44481,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind ClusterRole * @param param the request object */ - public listClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleRequest = {}, options?: Configuration): Promise> { + public listClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listClusterRoleWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44488,7 +44489,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind ClusterRole * @param param the request object */ - public listClusterRole(param: RbacAuthorizationV1ApiListClusterRoleRequest = {}, options?: Configuration): Promise { + public listClusterRole(param: RbacAuthorizationV1ApiListClusterRoleRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listClusterRole(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44496,7 +44497,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind ClusterRoleBinding * @param param the request object */ - public listClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + public listClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleBindingRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listClusterRoleBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44504,7 +44505,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind ClusterRoleBinding * @param param the request object */ - public listClusterRoleBinding(param: RbacAuthorizationV1ApiListClusterRoleBindingRequest = {}, options?: Configuration): Promise { + public listClusterRoleBinding(param: RbacAuthorizationV1ApiListClusterRoleBindingRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listClusterRoleBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44512,7 +44513,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind Role * @param param the request object */ - public listNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleRequest, options?: Configuration): Promise> { + public listNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44520,7 +44521,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind Role * @param param the request object */ - public listNamespacedRole(param: RbacAuthorizationV1ApiListNamespacedRoleRequest, options?: Configuration): Promise { + public listNamespacedRole(param: RbacAuthorizationV1ApiListNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedRole(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44528,7 +44529,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind RoleBinding * @param param the request object */ - public listNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public listNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44536,7 +44537,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind RoleBinding * @param param the request object */ - public listNamespacedRoleBinding(param: RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, options?: Configuration): Promise { + public listNamespacedRoleBinding(param: RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedRoleBinding(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44544,7 +44545,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind RoleBinding * @param param the request object */ - public listRoleBindingForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listRoleBindingForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listRoleBindingForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44552,7 +44553,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind RoleBinding * @param param the request object */ - public listRoleBindingForAllNamespaces(param: RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listRoleBindingForAllNamespaces(param: RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listRoleBindingForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44560,7 +44561,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind Role * @param param the request object */ - public listRoleForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listRoleForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listRoleForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44568,7 +44569,7 @@ export class ObjectRbacAuthorizationV1Api { * list or watch objects of kind Role * @param param the request object */ - public listRoleForAllNamespaces(param: RbacAuthorizationV1ApiListRoleForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listRoleForAllNamespaces(param: RbacAuthorizationV1ApiListRoleForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listRoleForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -44576,7 +44577,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified ClusterRole * @param param the request object */ - public patchClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleRequest, options?: Configuration): Promise> { + public patchClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44584,7 +44585,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified ClusterRole * @param param the request object */ - public patchClusterRole(param: RbacAuthorizationV1ApiPatchClusterRoleRequest, options?: Configuration): Promise { + public patchClusterRole(param: RbacAuthorizationV1ApiPatchClusterRoleRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44592,7 +44593,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified ClusterRoleBinding * @param param the request object */ - public patchClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, options?: Configuration): Promise> { + public patchClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.patchClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44600,7 +44601,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified ClusterRoleBinding * @param param the request object */ - public patchClusterRoleBinding(param: RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, options?: Configuration): Promise { + public patchClusterRoleBinding(param: RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.patchClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44608,7 +44609,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified Role * @param param the request object */ - public patchNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleRequest, options?: Configuration): Promise> { + public patchNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44616,7 +44617,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified Role * @param param the request object */ - public patchNamespacedRole(param: RbacAuthorizationV1ApiPatchNamespacedRoleRequest, options?: Configuration): Promise { + public patchNamespacedRole(param: RbacAuthorizationV1ApiPatchNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44624,7 +44625,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified RoleBinding * @param param the request object */ - public patchNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public patchNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44632,7 +44633,7 @@ export class ObjectRbacAuthorizationV1Api { * partially update the specified RoleBinding * @param param the request object */ - public patchNamespacedRoleBinding(param: RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, options?: Configuration): Promise { + public patchNamespacedRoleBinding(param: RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedRoleBinding(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -44640,7 +44641,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified ClusterRole * @param param the request object */ - public readClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleRequest, options?: Configuration): Promise> { + public readClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.readClusterRoleWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -44648,7 +44649,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified ClusterRole * @param param the request object */ - public readClusterRole(param: RbacAuthorizationV1ApiReadClusterRoleRequest, options?: Configuration): Promise { + public readClusterRole(param: RbacAuthorizationV1ApiReadClusterRoleRequest, options?: ConfigurationOptions): Promise { return this.api.readClusterRole(param.name, param.pretty, options).toPromise(); } @@ -44656,7 +44657,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified ClusterRoleBinding * @param param the request object */ - public readClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleBindingRequest, options?: Configuration): Promise> { + public readClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.readClusterRoleBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -44664,7 +44665,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified ClusterRoleBinding * @param param the request object */ - public readClusterRoleBinding(param: RbacAuthorizationV1ApiReadClusterRoleBindingRequest, options?: Configuration): Promise { + public readClusterRoleBinding(param: RbacAuthorizationV1ApiReadClusterRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.readClusterRoleBinding(param.name, param.pretty, options).toPromise(); } @@ -44672,7 +44673,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified Role * @param param the request object */ - public readNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleRequest, options?: Configuration): Promise> { + public readNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -44680,7 +44681,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified Role * @param param the request object */ - public readNamespacedRole(param: RbacAuthorizationV1ApiReadNamespacedRoleRequest, options?: Configuration): Promise { + public readNamespacedRole(param: RbacAuthorizationV1ApiReadNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedRole(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -44688,7 +44689,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified RoleBinding * @param param the request object */ - public readNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public readNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -44696,7 +44697,7 @@ export class ObjectRbacAuthorizationV1Api { * read the specified RoleBinding * @param param the request object */ - public readNamespacedRoleBinding(param: RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, options?: Configuration): Promise { + public readNamespacedRoleBinding(param: RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedRoleBinding(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -44704,7 +44705,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified ClusterRole * @param param the request object */ - public replaceClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleRequest, options?: Configuration): Promise> { + public replaceClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44712,7 +44713,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified ClusterRole * @param param the request object */ - public replaceClusterRole(param: RbacAuthorizationV1ApiReplaceClusterRoleRequest, options?: Configuration): Promise { + public replaceClusterRole(param: RbacAuthorizationV1ApiReplaceClusterRoleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44720,7 +44721,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified ClusterRoleBinding * @param param the request object */ - public replaceClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, options?: Configuration): Promise> { + public replaceClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44728,7 +44729,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified ClusterRoleBinding * @param param the request object */ - public replaceClusterRoleBinding(param: RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, options?: Configuration): Promise { + public replaceClusterRoleBinding(param: RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.replaceClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44736,7 +44737,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified Role * @param param the request object */ - public replaceNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, options?: Configuration): Promise> { + public replaceNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44744,7 +44745,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified Role * @param param the request object */ - public replaceNamespacedRole(param: RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, options?: Configuration): Promise { + public replaceNamespacedRole(param: RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44752,7 +44753,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified RoleBinding * @param param the request object */ - public replaceNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, options?: Configuration): Promise> { + public replaceNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44760,7 +44761,7 @@ export class ObjectRbacAuthorizationV1Api { * replace the specified RoleBinding * @param param the request object */ - public replaceNamespacedRoleBinding(param: RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, options?: Configuration): Promise { + public replaceNamespacedRoleBinding(param: RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedRoleBinding(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -44783,7 +44784,7 @@ export class ObjectResourceApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: ResourceApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: ResourceApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -44791,7 +44792,7 @@ export class ObjectResourceApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: ResourceApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: ResourceApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -46781,7 +46782,7 @@ export class ObjectResourceV1alpha3Api { * create a DeviceClass * @param param the request object */ - public createDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiCreateDeviceClassRequest, options?: Configuration): Promise> { + public createDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiCreateDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createDeviceClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46789,7 +46790,7 @@ export class ObjectResourceV1alpha3Api { * create a DeviceClass * @param param the request object */ - public createDeviceClass(param: ResourceV1alpha3ApiCreateDeviceClassRequest, options?: Configuration): Promise { + public createDeviceClass(param: ResourceV1alpha3ApiCreateDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.createDeviceClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46797,7 +46798,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceClaim * @param param the request object */ - public createNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public createNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedResourceClaimWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46805,7 +46806,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceClaim * @param param the request object */ - public createNamespacedResourceClaim(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, options?: Configuration): Promise { + public createNamespacedResourceClaim(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedResourceClaim(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46813,7 +46814,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceClaimTemplate * @param param the request object */ - public createNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public createNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46821,7 +46822,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceClaimTemplate * @param param the request object */ - public createNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public createNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiCreateNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedResourceClaimTemplate(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46829,7 +46830,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceSlice * @param param the request object */ - public createResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiCreateResourceSliceRequest, options?: Configuration): Promise> { + public createResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiCreateResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.createResourceSliceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46837,7 +46838,7 @@ export class ObjectResourceV1alpha3Api { * create a ResourceSlice * @param param the request object */ - public createResourceSlice(param: ResourceV1alpha3ApiCreateResourceSliceRequest, options?: Configuration): Promise { + public createResourceSlice(param: ResourceV1alpha3ApiCreateResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.createResourceSlice(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -46845,7 +46846,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of DeviceClass * @param param the request object */ - public deleteCollectionDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionDeviceClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46853,7 +46854,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of DeviceClass * @param param the request object */ - public deleteCollectionDeviceClass(param: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionDeviceClass(param: ResourceV1alpha3ApiDeleteCollectionDeviceClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionDeviceClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46861,7 +46862,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceClaim * @param param the request object */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46869,7 +46870,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceClaim * @param param the request object */ - public deleteCollectionNamespacedResourceClaim(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedResourceClaim(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedResourceClaim(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46877,7 +46878,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceClaimTemplate * @param param the request object */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46885,7 +46886,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceClaimTemplate * @param param the request object */ - public deleteCollectionNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedResourceClaimTemplate(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46893,7 +46894,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceSlice * @param param the request object */ - public deleteCollectionResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = {}, options?: Configuration): Promise> { + public deleteCollectionResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionResourceSliceWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46901,7 +46902,7 @@ export class ObjectResourceV1alpha3Api { * delete collection of ResourceSlice * @param param the request object */ - public deleteCollectionResourceSlice(param: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = {}, options?: Configuration): Promise { + public deleteCollectionResourceSlice(param: ResourceV1alpha3ApiDeleteCollectionResourceSliceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionResourceSlice(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -46909,7 +46910,7 @@ export class ObjectResourceV1alpha3Api { * delete a DeviceClass * @param param the request object */ - public deleteDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiDeleteDeviceClassRequest, options?: Configuration): Promise> { + public deleteDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiDeleteDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteDeviceClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46917,7 +46918,7 @@ export class ObjectResourceV1alpha3Api { * delete a DeviceClass * @param param the request object */ - public deleteDeviceClass(param: ResourceV1alpha3ApiDeleteDeviceClassRequest, options?: Configuration): Promise { + public deleteDeviceClass(param: ResourceV1alpha3ApiDeleteDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteDeviceClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46925,7 +46926,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceClaim * @param param the request object */ - public deleteNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public deleteNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46933,7 +46934,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceClaim * @param param the request object */ - public deleteNamespacedResourceClaim(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, options?: Configuration): Promise { + public deleteNamespacedResourceClaim(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedResourceClaim(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46941,7 +46942,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceClaimTemplate * @param param the request object */ - public deleteNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public deleteNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46949,7 +46950,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceClaimTemplate * @param param the request object */ - public deleteNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public deleteNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiDeleteNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedResourceClaimTemplate(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46957,7 +46958,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceSlice * @param param the request object */ - public deleteResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiDeleteResourceSliceRequest, options?: Configuration): Promise> { + public deleteResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiDeleteResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteResourceSliceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46965,7 +46966,7 @@ export class ObjectResourceV1alpha3Api { * delete a ResourceSlice * @param param the request object */ - public deleteResourceSlice(param: ResourceV1alpha3ApiDeleteResourceSliceRequest, options?: Configuration): Promise { + public deleteResourceSlice(param: ResourceV1alpha3ApiDeleteResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteResourceSlice(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -46973,7 +46974,7 @@ export class ObjectResourceV1alpha3Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: ResourceV1alpha3ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: ResourceV1alpha3ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -46981,7 +46982,7 @@ export class ObjectResourceV1alpha3Api { * get available resources * @param param the request object */ - public getAPIResources(param: ResourceV1alpha3ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: ResourceV1alpha3ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -46989,7 +46990,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind DeviceClass * @param param the request object */ - public listDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiListDeviceClassRequest = {}, options?: Configuration): Promise> { + public listDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiListDeviceClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listDeviceClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -46997,7 +46998,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind DeviceClass * @param param the request object */ - public listDeviceClass(param: ResourceV1alpha3ApiListDeviceClassRequest = {}, options?: Configuration): Promise { + public listDeviceClass(param: ResourceV1alpha3ApiListDeviceClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listDeviceClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47005,7 +47006,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiListNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public listNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiListNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedResourceClaimWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47013,7 +47014,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listNamespacedResourceClaim(param: ResourceV1alpha3ApiListNamespacedResourceClaimRequest, options?: Configuration): Promise { + public listNamespacedResourceClaim(param: ResourceV1alpha3ApiListNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedResourceClaim(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47021,7 +47022,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public listNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47029,7 +47030,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public listNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiListNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedResourceClaimTemplate(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47037,7 +47038,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listResourceClaimForAllNamespacesWithHttpInfo(param: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listResourceClaimForAllNamespacesWithHttpInfo(param: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceClaimForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47045,7 +47046,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listResourceClaimForAllNamespaces(param: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listResourceClaimForAllNamespaces(param: ResourceV1alpha3ApiListResourceClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceClaimForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47053,7 +47054,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listResourceClaimTemplateForAllNamespacesWithHttpInfo(param: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(param: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47061,7 +47062,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listResourceClaimTemplateForAllNamespaces(param: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listResourceClaimTemplateForAllNamespaces(param: ResourceV1alpha3ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceClaimTemplateForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47069,7 +47070,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceSlice * @param param the request object */ - public listResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiListResourceSliceRequest = {}, options?: Configuration): Promise> { + public listResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiListResourceSliceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceSliceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47077,7 +47078,7 @@ export class ObjectResourceV1alpha3Api { * list or watch objects of kind ResourceSlice * @param param the request object */ - public listResourceSlice(param: ResourceV1alpha3ApiListResourceSliceRequest = {}, options?: Configuration): Promise { + public listResourceSlice(param: ResourceV1alpha3ApiListResourceSliceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceSlice(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -47085,7 +47086,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified DeviceClass * @param param the request object */ - public patchDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiPatchDeviceClassRequest, options?: Configuration): Promise> { + public patchDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiPatchDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchDeviceClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47093,7 +47094,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified DeviceClass * @param param the request object */ - public patchDeviceClass(param: ResourceV1alpha3ApiPatchDeviceClassRequest, options?: Configuration): Promise { + public patchDeviceClass(param: ResourceV1alpha3ApiPatchDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchDeviceClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47101,7 +47102,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47109,7 +47110,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaim(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaim(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47117,7 +47118,7 @@ export class ObjectResourceV1alpha3Api { * partially update status of the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47125,7 +47126,7 @@ export class ObjectResourceV1alpha3Api { * partially update status of the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47133,7 +47134,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceClaimTemplate * @param param the request object */ - public patchNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47141,7 +47142,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceClaimTemplate * @param param the request object */ - public patchNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiPatchNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaimTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47149,7 +47150,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceSlice * @param param the request object */ - public patchResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiPatchResourceSliceRequest, options?: Configuration): Promise> { + public patchResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiPatchResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchResourceSliceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47157,7 +47158,7 @@ export class ObjectResourceV1alpha3Api { * partially update the specified ResourceSlice * @param param the request object */ - public patchResourceSlice(param: ResourceV1alpha3ApiPatchResourceSliceRequest, options?: Configuration): Promise { + public patchResourceSlice(param: ResourceV1alpha3ApiPatchResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.patchResourceSlice(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -47165,7 +47166,7 @@ export class ObjectResourceV1alpha3Api { * read the specified DeviceClass * @param param the request object */ - public readDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiReadDeviceClassRequest, options?: Configuration): Promise> { + public readDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiReadDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readDeviceClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -47173,7 +47174,7 @@ export class ObjectResourceV1alpha3Api { * read the specified DeviceClass * @param param the request object */ - public readDeviceClass(param: ResourceV1alpha3ApiReadDeviceClassRequest, options?: Configuration): Promise { + public readDeviceClass(param: ResourceV1alpha3ApiReadDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.readDeviceClass(param.name, param.pretty, options).toPromise(); } @@ -47181,7 +47182,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47189,7 +47190,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaim(param: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, options?: Configuration): Promise { + public readNamespacedResourceClaim(param: ResourceV1alpha3ApiReadNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaim(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47197,7 +47198,7 @@ export class ObjectResourceV1alpha3Api { * read status of the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47205,7 +47206,7 @@ export class ObjectResourceV1alpha3Api { * read status of the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public readNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiReadNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaimStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47213,7 +47214,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceClaimTemplate * @param param the request object */ - public readNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47221,7 +47222,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceClaimTemplate * @param param the request object */ - public readNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public readNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiReadNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaimTemplate(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -47229,7 +47230,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceSlice * @param param the request object */ - public readResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiReadResourceSliceRequest, options?: Configuration): Promise> { + public readResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiReadResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.readResourceSliceWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -47237,7 +47238,7 @@ export class ObjectResourceV1alpha3Api { * read the specified ResourceSlice * @param param the request object */ - public readResourceSlice(param: ResourceV1alpha3ApiReadResourceSliceRequest, options?: Configuration): Promise { + public readResourceSlice(param: ResourceV1alpha3ApiReadResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.readResourceSlice(param.name, param.pretty, options).toPromise(); } @@ -47245,7 +47246,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified DeviceClass * @param param the request object */ - public replaceDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiReplaceDeviceClassRequest, options?: Configuration): Promise> { + public replaceDeviceClassWithHttpInfo(param: ResourceV1alpha3ApiReplaceDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceDeviceClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47253,7 +47254,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified DeviceClass * @param param the request object */ - public replaceDeviceClass(param: ResourceV1alpha3ApiReplaceDeviceClassRequest, options?: Configuration): Promise { + public replaceDeviceClass(param: ResourceV1alpha3ApiReplaceDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceDeviceClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47261,7 +47262,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47269,7 +47270,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaim(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaim(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47277,7 +47278,7 @@ export class ObjectResourceV1alpha3Api { * replace status of the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47285,7 +47286,7 @@ export class ObjectResourceV1alpha3Api { * replace status of the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaimStatus(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47293,7 +47294,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceClaimTemplate * @param param the request object */ - public replaceNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47301,7 +47302,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceClaimTemplate * @param param the request object */ - public replaceNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaimTemplate(param: ResourceV1alpha3ApiReplaceNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaimTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47309,7 +47310,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceSlice * @param param the request object */ - public replaceResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiReplaceResourceSliceRequest, options?: Configuration): Promise> { + public replaceResourceSliceWithHttpInfo(param: ResourceV1alpha3ApiReplaceResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceResourceSliceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -47317,7 +47318,7 @@ export class ObjectResourceV1alpha3Api { * replace the specified ResourceSlice * @param param the request object */ - public replaceResourceSlice(param: ResourceV1alpha3ApiReplaceResourceSliceRequest, options?: Configuration): Promise { + public replaceResourceSlice(param: ResourceV1alpha3ApiReplaceResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceResourceSlice(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49307,7 +49308,7 @@ export class ObjectResourceV1beta1Api { * create a DeviceClass * @param param the request object */ - public createDeviceClassWithHttpInfo(param: ResourceV1beta1ApiCreateDeviceClassRequest, options?: Configuration): Promise> { + public createDeviceClassWithHttpInfo(param: ResourceV1beta1ApiCreateDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createDeviceClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49315,7 +49316,7 @@ export class ObjectResourceV1beta1Api { * create a DeviceClass * @param param the request object */ - public createDeviceClass(param: ResourceV1beta1ApiCreateDeviceClassRequest, options?: Configuration): Promise { + public createDeviceClass(param: ResourceV1beta1ApiCreateDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.createDeviceClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49323,7 +49324,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceClaim * @param param the request object */ - public createNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public createNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedResourceClaimWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49331,7 +49332,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceClaim * @param param the request object */ - public createNamespacedResourceClaim(param: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, options?: Configuration): Promise { + public createNamespacedResourceClaim(param: ResourceV1beta1ApiCreateNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedResourceClaim(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49339,7 +49340,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceClaimTemplate * @param param the request object */ - public createNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public createNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49347,7 +49348,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceClaimTemplate * @param param the request object */ - public createNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public createNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiCreateNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedResourceClaimTemplate(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49355,7 +49356,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceSlice * @param param the request object */ - public createResourceSliceWithHttpInfo(param: ResourceV1beta1ApiCreateResourceSliceRequest, options?: Configuration): Promise> { + public createResourceSliceWithHttpInfo(param: ResourceV1beta1ApiCreateResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.createResourceSliceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49363,7 +49364,7 @@ export class ObjectResourceV1beta1Api { * create a ResourceSlice * @param param the request object */ - public createResourceSlice(param: ResourceV1beta1ApiCreateResourceSliceRequest, options?: Configuration): Promise { + public createResourceSlice(param: ResourceV1beta1ApiCreateResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.createResourceSlice(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49371,7 +49372,7 @@ export class ObjectResourceV1beta1Api { * delete collection of DeviceClass * @param param the request object */ - public deleteCollectionDeviceClassWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionDeviceClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionDeviceClassWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionDeviceClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionDeviceClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49379,7 +49380,7 @@ export class ObjectResourceV1beta1Api { * delete collection of DeviceClass * @param param the request object */ - public deleteCollectionDeviceClass(param: ResourceV1beta1ApiDeleteCollectionDeviceClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionDeviceClass(param: ResourceV1beta1ApiDeleteCollectionDeviceClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionDeviceClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49387,7 +49388,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceClaim * @param param the request object */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49395,7 +49396,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceClaim * @param param the request object */ - public deleteCollectionNamespacedResourceClaim(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedResourceClaim(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedResourceClaim(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49403,7 +49404,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceClaimTemplate * @param param the request object */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49411,7 +49412,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceClaimTemplate * @param param the request object */ - public deleteCollectionNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiDeleteCollectionNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedResourceClaimTemplate(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49419,7 +49420,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceSlice * @param param the request object */ - public deleteCollectionResourceSliceWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionResourceSliceRequest = {}, options?: Configuration): Promise> { + public deleteCollectionResourceSliceWithHttpInfo(param: ResourceV1beta1ApiDeleteCollectionResourceSliceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionResourceSliceWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49427,7 +49428,7 @@ export class ObjectResourceV1beta1Api { * delete collection of ResourceSlice * @param param the request object */ - public deleteCollectionResourceSlice(param: ResourceV1beta1ApiDeleteCollectionResourceSliceRequest = {}, options?: Configuration): Promise { + public deleteCollectionResourceSlice(param: ResourceV1beta1ApiDeleteCollectionResourceSliceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionResourceSlice(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -49435,7 +49436,7 @@ export class ObjectResourceV1beta1Api { * delete a DeviceClass * @param param the request object */ - public deleteDeviceClassWithHttpInfo(param: ResourceV1beta1ApiDeleteDeviceClassRequest, options?: Configuration): Promise> { + public deleteDeviceClassWithHttpInfo(param: ResourceV1beta1ApiDeleteDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteDeviceClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49443,7 +49444,7 @@ export class ObjectResourceV1beta1Api { * delete a DeviceClass * @param param the request object */ - public deleteDeviceClass(param: ResourceV1beta1ApiDeleteDeviceClassRequest, options?: Configuration): Promise { + public deleteDeviceClass(param: ResourceV1beta1ApiDeleteDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteDeviceClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49451,7 +49452,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceClaim * @param param the request object */ - public deleteNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public deleteNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49459,7 +49460,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceClaim * @param param the request object */ - public deleteNamespacedResourceClaim(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, options?: Configuration): Promise { + public deleteNamespacedResourceClaim(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedResourceClaim(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49467,7 +49468,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceClaimTemplate * @param param the request object */ - public deleteNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public deleteNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49475,7 +49476,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceClaimTemplate * @param param the request object */ - public deleteNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public deleteNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiDeleteNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedResourceClaimTemplate(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49483,7 +49484,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceSlice * @param param the request object */ - public deleteResourceSliceWithHttpInfo(param: ResourceV1beta1ApiDeleteResourceSliceRequest, options?: Configuration): Promise> { + public deleteResourceSliceWithHttpInfo(param: ResourceV1beta1ApiDeleteResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteResourceSliceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49491,7 +49492,7 @@ export class ObjectResourceV1beta1Api { * delete a ResourceSlice * @param param the request object */ - public deleteResourceSlice(param: ResourceV1beta1ApiDeleteResourceSliceRequest, options?: Configuration): Promise { + public deleteResourceSlice(param: ResourceV1beta1ApiDeleteResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.deleteResourceSlice(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -49499,7 +49500,7 @@ export class ObjectResourceV1beta1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: ResourceV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: ResourceV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -49507,7 +49508,7 @@ export class ObjectResourceV1beta1Api { * get available resources * @param param the request object */ - public getAPIResources(param: ResourceV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: ResourceV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -49515,7 +49516,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind DeviceClass * @param param the request object */ - public listDeviceClassWithHttpInfo(param: ResourceV1beta1ApiListDeviceClassRequest = {}, options?: Configuration): Promise> { + public listDeviceClassWithHttpInfo(param: ResourceV1beta1ApiListDeviceClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listDeviceClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49523,7 +49524,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind DeviceClass * @param param the request object */ - public listDeviceClass(param: ResourceV1beta1ApiListDeviceClassRequest = {}, options?: Configuration): Promise { + public listDeviceClass(param: ResourceV1beta1ApiListDeviceClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listDeviceClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49531,7 +49532,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiListNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public listNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiListNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedResourceClaimWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49539,7 +49540,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listNamespacedResourceClaim(param: ResourceV1beta1ApiListNamespacedResourceClaimRequest, options?: Configuration): Promise { + public listNamespacedResourceClaim(param: ResourceV1beta1ApiListNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedResourceClaim(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49547,7 +49548,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public listNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedResourceClaimTemplateWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49555,7 +49556,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public listNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiListNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedResourceClaimTemplate(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49563,7 +49564,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listResourceClaimForAllNamespacesWithHttpInfo(param: ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listResourceClaimForAllNamespacesWithHttpInfo(param: ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceClaimForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49571,7 +49572,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaim * @param param the request object */ - public listResourceClaimForAllNamespaces(param: ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listResourceClaimForAllNamespaces(param: ResourceV1beta1ApiListResourceClaimForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceClaimForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49579,7 +49580,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listResourceClaimTemplateForAllNamespacesWithHttpInfo(param: ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(param: ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49587,7 +49588,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceClaimTemplate * @param param the request object */ - public listResourceClaimTemplateForAllNamespaces(param: ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listResourceClaimTemplateForAllNamespaces(param: ResourceV1beta1ApiListResourceClaimTemplateForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceClaimTemplateForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49595,7 +49596,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceSlice * @param param the request object */ - public listResourceSliceWithHttpInfo(param: ResourceV1beta1ApiListResourceSliceRequest = {}, options?: Configuration): Promise> { + public listResourceSliceWithHttpInfo(param: ResourceV1beta1ApiListResourceSliceRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listResourceSliceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49603,7 +49604,7 @@ export class ObjectResourceV1beta1Api { * list or watch objects of kind ResourceSlice * @param param the request object */ - public listResourceSlice(param: ResourceV1beta1ApiListResourceSliceRequest = {}, options?: Configuration): Promise { + public listResourceSlice(param: ResourceV1beta1ApiListResourceSliceRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listResourceSlice(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -49611,7 +49612,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified DeviceClass * @param param the request object */ - public patchDeviceClassWithHttpInfo(param: ResourceV1beta1ApiPatchDeviceClassRequest, options?: Configuration): Promise> { + public patchDeviceClassWithHttpInfo(param: ResourceV1beta1ApiPatchDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchDeviceClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49619,7 +49620,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified DeviceClass * @param param the request object */ - public patchDeviceClass(param: ResourceV1beta1ApiPatchDeviceClassRequest, options?: Configuration): Promise { + public patchDeviceClass(param: ResourceV1beta1ApiPatchDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchDeviceClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49627,7 +49628,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49635,7 +49636,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaim(param: ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaim(param: ResourceV1beta1ApiPatchNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49643,7 +49644,7 @@ export class ObjectResourceV1beta1Api { * partially update status of the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49651,7 +49652,7 @@ export class ObjectResourceV1beta1Api { * partially update status of the specified ResourceClaim * @param param the request object */ - public patchNamespacedResourceClaimStatus(param: ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaimStatus(param: ResourceV1beta1ApiPatchNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49659,7 +49660,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceClaimTemplate * @param param the request object */ - public patchNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public patchNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49667,7 +49668,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceClaimTemplate * @param param the request object */ - public patchNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public patchNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiPatchNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedResourceClaimTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49675,7 +49676,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceSlice * @param param the request object */ - public patchResourceSliceWithHttpInfo(param: ResourceV1beta1ApiPatchResourceSliceRequest, options?: Configuration): Promise> { + public patchResourceSliceWithHttpInfo(param: ResourceV1beta1ApiPatchResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.patchResourceSliceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49683,7 +49684,7 @@ export class ObjectResourceV1beta1Api { * partially update the specified ResourceSlice * @param param the request object */ - public patchResourceSlice(param: ResourceV1beta1ApiPatchResourceSliceRequest, options?: Configuration): Promise { + public patchResourceSlice(param: ResourceV1beta1ApiPatchResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.patchResourceSlice(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -49691,7 +49692,7 @@ export class ObjectResourceV1beta1Api { * read the specified DeviceClass * @param param the request object */ - public readDeviceClassWithHttpInfo(param: ResourceV1beta1ApiReadDeviceClassRequest, options?: Configuration): Promise> { + public readDeviceClassWithHttpInfo(param: ResourceV1beta1ApiReadDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readDeviceClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -49699,7 +49700,7 @@ export class ObjectResourceV1beta1Api { * read the specified DeviceClass * @param param the request object */ - public readDeviceClass(param: ResourceV1beta1ApiReadDeviceClassRequest, options?: Configuration): Promise { + public readDeviceClass(param: ResourceV1beta1ApiReadDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.readDeviceClass(param.name, param.pretty, options).toPromise(); } @@ -49707,7 +49708,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49715,7 +49716,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaim(param: ResourceV1beta1ApiReadNamespacedResourceClaimRequest, options?: Configuration): Promise { + public readNamespacedResourceClaim(param: ResourceV1beta1ApiReadNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaim(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49723,7 +49724,7 @@ export class ObjectResourceV1beta1Api { * read status of the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49731,7 +49732,7 @@ export class ObjectResourceV1beta1Api { * read status of the specified ResourceClaim * @param param the request object */ - public readNamespacedResourceClaimStatus(param: ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public readNamespacedResourceClaimStatus(param: ResourceV1beta1ApiReadNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaimStatus(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49739,7 +49740,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceClaimTemplate * @param param the request object */ - public readNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public readNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49747,7 +49748,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceClaimTemplate * @param param the request object */ - public readNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public readNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiReadNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedResourceClaimTemplate(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -49755,7 +49756,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceSlice * @param param the request object */ - public readResourceSliceWithHttpInfo(param: ResourceV1beta1ApiReadResourceSliceRequest, options?: Configuration): Promise> { + public readResourceSliceWithHttpInfo(param: ResourceV1beta1ApiReadResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.readResourceSliceWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -49763,7 +49764,7 @@ export class ObjectResourceV1beta1Api { * read the specified ResourceSlice * @param param the request object */ - public readResourceSlice(param: ResourceV1beta1ApiReadResourceSliceRequest, options?: Configuration): Promise { + public readResourceSlice(param: ResourceV1beta1ApiReadResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.readResourceSlice(param.name, param.pretty, options).toPromise(); } @@ -49771,7 +49772,7 @@ export class ObjectResourceV1beta1Api { * replace the specified DeviceClass * @param param the request object */ - public replaceDeviceClassWithHttpInfo(param: ResourceV1beta1ApiReplaceDeviceClassRequest, options?: Configuration): Promise> { + public replaceDeviceClassWithHttpInfo(param: ResourceV1beta1ApiReplaceDeviceClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceDeviceClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49779,7 +49780,7 @@ export class ObjectResourceV1beta1Api { * replace the specified DeviceClass * @param param the request object */ - public replaceDeviceClass(param: ResourceV1beta1ApiReplaceDeviceClassRequest, options?: Configuration): Promise { + public replaceDeviceClass(param: ResourceV1beta1ApiReplaceDeviceClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceDeviceClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49787,7 +49788,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49795,7 +49796,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaim(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaim(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49803,7 +49804,7 @@ export class ObjectResourceV1beta1Api { * replace status of the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimStatusWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49811,7 +49812,7 @@ export class ObjectResourceV1beta1Api { * replace status of the specified ResourceClaim * @param param the request object */ - public replaceNamespacedResourceClaimStatus(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaimStatus(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49819,7 +49820,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceClaimTemplate * @param param the request object */ - public replaceNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise> { + public replaceNamespacedResourceClaimTemplateWithHttpInfo(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49827,7 +49828,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceClaimTemplate * @param param the request object */ - public replaceNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, options?: Configuration): Promise { + public replaceNamespacedResourceClaimTemplate(param: ResourceV1beta1ApiReplaceNamespacedResourceClaimTemplateRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedResourceClaimTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49835,7 +49836,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceSlice * @param param the request object */ - public replaceResourceSliceWithHttpInfo(param: ResourceV1beta1ApiReplaceResourceSliceRequest, options?: Configuration): Promise> { + public replaceResourceSliceWithHttpInfo(param: ResourceV1beta1ApiReplaceResourceSliceRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceResourceSliceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49843,7 +49844,7 @@ export class ObjectResourceV1beta1Api { * replace the specified ResourceSlice * @param param the request object */ - public replaceResourceSlice(param: ResourceV1beta1ApiReplaceResourceSliceRequest, options?: Configuration): Promise { + public replaceResourceSlice(param: ResourceV1beta1ApiReplaceResourceSliceRequest, options?: ConfigurationOptions): Promise { return this.api.replaceResourceSlice(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -49866,7 +49867,7 @@ export class ObjectSchedulingApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: SchedulingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: SchedulingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -49874,7 +49875,7 @@ export class ObjectSchedulingApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: SchedulingApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: SchedulingApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -50291,7 +50292,7 @@ export class ObjectSchedulingV1Api { * create a PriorityClass * @param param the request object */ - public createPriorityClassWithHttpInfo(param: SchedulingV1ApiCreatePriorityClassRequest, options?: Configuration): Promise> { + public createPriorityClassWithHttpInfo(param: SchedulingV1ApiCreatePriorityClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createPriorityClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -50299,7 +50300,7 @@ export class ObjectSchedulingV1Api { * create a PriorityClass * @param param the request object */ - public createPriorityClass(param: SchedulingV1ApiCreatePriorityClassRequest, options?: Configuration): Promise { + public createPriorityClass(param: SchedulingV1ApiCreatePriorityClassRequest, options?: ConfigurationOptions): Promise { return this.api.createPriorityClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -50307,7 +50308,7 @@ export class ObjectSchedulingV1Api { * delete collection of PriorityClass * @param param the request object */ - public deleteCollectionPriorityClassWithHttpInfo(param: SchedulingV1ApiDeleteCollectionPriorityClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionPriorityClassWithHttpInfo(param: SchedulingV1ApiDeleteCollectionPriorityClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionPriorityClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -50315,7 +50316,7 @@ export class ObjectSchedulingV1Api { * delete collection of PriorityClass * @param param the request object */ - public deleteCollectionPriorityClass(param: SchedulingV1ApiDeleteCollectionPriorityClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionPriorityClass(param: SchedulingV1ApiDeleteCollectionPriorityClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionPriorityClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -50323,7 +50324,7 @@ export class ObjectSchedulingV1Api { * delete a PriorityClass * @param param the request object */ - public deletePriorityClassWithHttpInfo(param: SchedulingV1ApiDeletePriorityClassRequest, options?: Configuration): Promise> { + public deletePriorityClassWithHttpInfo(param: SchedulingV1ApiDeletePriorityClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deletePriorityClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -50331,7 +50332,7 @@ export class ObjectSchedulingV1Api { * delete a PriorityClass * @param param the request object */ - public deletePriorityClass(param: SchedulingV1ApiDeletePriorityClassRequest, options?: Configuration): Promise { + public deletePriorityClass(param: SchedulingV1ApiDeletePriorityClassRequest, options?: ConfigurationOptions): Promise { return this.api.deletePriorityClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -50339,7 +50340,7 @@ export class ObjectSchedulingV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: SchedulingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: SchedulingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -50347,7 +50348,7 @@ export class ObjectSchedulingV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: SchedulingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: SchedulingV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -50355,7 +50356,7 @@ export class ObjectSchedulingV1Api { * list or watch objects of kind PriorityClass * @param param the request object */ - public listPriorityClassWithHttpInfo(param: SchedulingV1ApiListPriorityClassRequest = {}, options?: Configuration): Promise> { + public listPriorityClassWithHttpInfo(param: SchedulingV1ApiListPriorityClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listPriorityClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -50363,7 +50364,7 @@ export class ObjectSchedulingV1Api { * list or watch objects of kind PriorityClass * @param param the request object */ - public listPriorityClass(param: SchedulingV1ApiListPriorityClassRequest = {}, options?: Configuration): Promise { + public listPriorityClass(param: SchedulingV1ApiListPriorityClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listPriorityClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -50371,7 +50372,7 @@ export class ObjectSchedulingV1Api { * partially update the specified PriorityClass * @param param the request object */ - public patchPriorityClassWithHttpInfo(param: SchedulingV1ApiPatchPriorityClassRequest, options?: Configuration): Promise> { + public patchPriorityClassWithHttpInfo(param: SchedulingV1ApiPatchPriorityClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchPriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -50379,7 +50380,7 @@ export class ObjectSchedulingV1Api { * partially update the specified PriorityClass * @param param the request object */ - public patchPriorityClass(param: SchedulingV1ApiPatchPriorityClassRequest, options?: Configuration): Promise { + public patchPriorityClass(param: SchedulingV1ApiPatchPriorityClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchPriorityClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -50387,7 +50388,7 @@ export class ObjectSchedulingV1Api { * read the specified PriorityClass * @param param the request object */ - public readPriorityClassWithHttpInfo(param: SchedulingV1ApiReadPriorityClassRequest, options?: Configuration): Promise> { + public readPriorityClassWithHttpInfo(param: SchedulingV1ApiReadPriorityClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readPriorityClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -50395,7 +50396,7 @@ export class ObjectSchedulingV1Api { * read the specified PriorityClass * @param param the request object */ - public readPriorityClass(param: SchedulingV1ApiReadPriorityClassRequest, options?: Configuration): Promise { + public readPriorityClass(param: SchedulingV1ApiReadPriorityClassRequest, options?: ConfigurationOptions): Promise { return this.api.readPriorityClass(param.name, param.pretty, options).toPromise(); } @@ -50403,7 +50404,7 @@ export class ObjectSchedulingV1Api { * replace the specified PriorityClass * @param param the request object */ - public replacePriorityClassWithHttpInfo(param: SchedulingV1ApiReplacePriorityClassRequest, options?: Configuration): Promise> { + public replacePriorityClassWithHttpInfo(param: SchedulingV1ApiReplacePriorityClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replacePriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -50411,7 +50412,7 @@ export class ObjectSchedulingV1Api { * replace the specified PriorityClass * @param param the request object */ - public replacePriorityClass(param: SchedulingV1ApiReplacePriorityClassRequest, options?: Configuration): Promise { + public replacePriorityClass(param: SchedulingV1ApiReplacePriorityClassRequest, options?: ConfigurationOptions): Promise { return this.api.replacePriorityClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -50434,7 +50435,7 @@ export class ObjectStorageApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: StorageApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: StorageApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -50442,7 +50443,7 @@ export class ObjectStorageApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: StorageApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: StorageApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -52676,7 +52677,7 @@ export class ObjectStorageV1Api { * create a CSIDriver * @param param the request object */ - public createCSIDriverWithHttpInfo(param: StorageV1ApiCreateCSIDriverRequest, options?: Configuration): Promise> { + public createCSIDriverWithHttpInfo(param: StorageV1ApiCreateCSIDriverRequest, options?: ConfigurationOptions): Promise> { return this.api.createCSIDriverWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52684,7 +52685,7 @@ export class ObjectStorageV1Api { * create a CSIDriver * @param param the request object */ - public createCSIDriver(param: StorageV1ApiCreateCSIDriverRequest, options?: Configuration): Promise { + public createCSIDriver(param: StorageV1ApiCreateCSIDriverRequest, options?: ConfigurationOptions): Promise { return this.api.createCSIDriver(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52692,7 +52693,7 @@ export class ObjectStorageV1Api { * create a CSINode * @param param the request object */ - public createCSINodeWithHttpInfo(param: StorageV1ApiCreateCSINodeRequest, options?: Configuration): Promise> { + public createCSINodeWithHttpInfo(param: StorageV1ApiCreateCSINodeRequest, options?: ConfigurationOptions): Promise> { return this.api.createCSINodeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52700,7 +52701,7 @@ export class ObjectStorageV1Api { * create a CSINode * @param param the request object */ - public createCSINode(param: StorageV1ApiCreateCSINodeRequest, options?: Configuration): Promise { + public createCSINode(param: StorageV1ApiCreateCSINodeRequest, options?: ConfigurationOptions): Promise { return this.api.createCSINode(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52708,7 +52709,7 @@ export class ObjectStorageV1Api { * create a CSIStorageCapacity * @param param the request object */ - public createNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public createNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.createNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52716,7 +52717,7 @@ export class ObjectStorageV1Api { * create a CSIStorageCapacity * @param param the request object */ - public createNamespacedCSIStorageCapacity(param: StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public createNamespacedCSIStorageCapacity(param: StorageV1ApiCreateNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.createNamespacedCSIStorageCapacity(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52724,7 +52725,7 @@ export class ObjectStorageV1Api { * create a StorageClass * @param param the request object */ - public createStorageClassWithHttpInfo(param: StorageV1ApiCreateStorageClassRequest, options?: Configuration): Promise> { + public createStorageClassWithHttpInfo(param: StorageV1ApiCreateStorageClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createStorageClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52732,7 +52733,7 @@ export class ObjectStorageV1Api { * create a StorageClass * @param param the request object */ - public createStorageClass(param: StorageV1ApiCreateStorageClassRequest, options?: Configuration): Promise { + public createStorageClass(param: StorageV1ApiCreateStorageClassRequest, options?: ConfigurationOptions): Promise { return this.api.createStorageClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52740,7 +52741,7 @@ export class ObjectStorageV1Api { * create a VolumeAttachment * @param param the request object */ - public createVolumeAttachmentWithHttpInfo(param: StorageV1ApiCreateVolumeAttachmentRequest, options?: Configuration): Promise> { + public createVolumeAttachmentWithHttpInfo(param: StorageV1ApiCreateVolumeAttachmentRequest, options?: ConfigurationOptions): Promise> { return this.api.createVolumeAttachmentWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52748,7 +52749,7 @@ export class ObjectStorageV1Api { * create a VolumeAttachment * @param param the request object */ - public createVolumeAttachment(param: StorageV1ApiCreateVolumeAttachmentRequest, options?: Configuration): Promise { + public createVolumeAttachment(param: StorageV1ApiCreateVolumeAttachmentRequest, options?: ConfigurationOptions): Promise { return this.api.createVolumeAttachment(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -52756,7 +52757,7 @@ export class ObjectStorageV1Api { * delete a CSIDriver * @param param the request object */ - public deleteCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCSIDriverRequest, options?: Configuration): Promise> { + public deleteCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCSIDriverRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCSIDriverWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52764,7 +52765,7 @@ export class ObjectStorageV1Api { * delete a CSIDriver * @param param the request object */ - public deleteCSIDriver(param: StorageV1ApiDeleteCSIDriverRequest, options?: Configuration): Promise { + public deleteCSIDriver(param: StorageV1ApiDeleteCSIDriverRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCSIDriver(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52772,7 +52773,7 @@ export class ObjectStorageV1Api { * delete a CSINode * @param param the request object */ - public deleteCSINodeWithHttpInfo(param: StorageV1ApiDeleteCSINodeRequest, options?: Configuration): Promise> { + public deleteCSINodeWithHttpInfo(param: StorageV1ApiDeleteCSINodeRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCSINodeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52780,7 +52781,7 @@ export class ObjectStorageV1Api { * delete a CSINode * @param param the request object */ - public deleteCSINode(param: StorageV1ApiDeleteCSINodeRequest, options?: Configuration): Promise { + public deleteCSINode(param: StorageV1ApiDeleteCSINodeRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCSINode(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52788,7 +52789,7 @@ export class ObjectStorageV1Api { * delete collection of CSIDriver * @param param the request object */ - public deleteCollectionCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCollectionCSIDriverRequest = {}, options?: Configuration): Promise> { + public deleteCollectionCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCollectionCSIDriverRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionCSIDriverWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52796,7 +52797,7 @@ export class ObjectStorageV1Api { * delete collection of CSIDriver * @param param the request object */ - public deleteCollectionCSIDriver(param: StorageV1ApiDeleteCollectionCSIDriverRequest = {}, options?: Configuration): Promise { + public deleteCollectionCSIDriver(param: StorageV1ApiDeleteCollectionCSIDriverRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionCSIDriver(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52804,7 +52805,7 @@ export class ObjectStorageV1Api { * delete collection of CSINode * @param param the request object */ - public deleteCollectionCSINodeWithHttpInfo(param: StorageV1ApiDeleteCollectionCSINodeRequest = {}, options?: Configuration): Promise> { + public deleteCollectionCSINodeWithHttpInfo(param: StorageV1ApiDeleteCollectionCSINodeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionCSINodeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52812,7 +52813,7 @@ export class ObjectStorageV1Api { * delete collection of CSINode * @param param the request object */ - public deleteCollectionCSINode(param: StorageV1ApiDeleteCollectionCSINodeRequest = {}, options?: Configuration): Promise { + public deleteCollectionCSINode(param: StorageV1ApiDeleteCollectionCSINodeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionCSINode(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52820,7 +52821,7 @@ export class ObjectStorageV1Api { * delete collection of CSIStorageCapacity * @param param the request object */ - public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52828,7 +52829,7 @@ export class ObjectStorageV1Api { * delete collection of CSIStorageCapacity * @param param the request object */ - public deleteCollectionNamespacedCSIStorageCapacity(param: StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public deleteCollectionNamespacedCSIStorageCapacity(param: StorageV1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionNamespacedCSIStorageCapacity(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52836,7 +52837,7 @@ export class ObjectStorageV1Api { * delete collection of StorageClass * @param param the request object */ - public deleteCollectionStorageClassWithHttpInfo(param: StorageV1ApiDeleteCollectionStorageClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionStorageClassWithHttpInfo(param: StorageV1ApiDeleteCollectionStorageClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionStorageClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52844,7 +52845,7 @@ export class ObjectStorageV1Api { * delete collection of StorageClass * @param param the request object */ - public deleteCollectionStorageClass(param: StorageV1ApiDeleteCollectionStorageClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionStorageClass(param: StorageV1ApiDeleteCollectionStorageClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionStorageClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52852,7 +52853,7 @@ export class ObjectStorageV1Api { * delete collection of VolumeAttachment * @param param the request object */ - public deleteCollectionVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + public deleteCollectionVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionVolumeAttachmentWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52860,7 +52861,7 @@ export class ObjectStorageV1Api { * delete collection of VolumeAttachment * @param param the request object */ - public deleteCollectionVolumeAttachment(param: StorageV1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: Configuration): Promise { + public deleteCollectionVolumeAttachment(param: StorageV1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionVolumeAttachment(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -52868,7 +52869,7 @@ export class ObjectStorageV1Api { * delete a CSIStorageCapacity * @param param the request object */ - public deleteNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public deleteNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52876,7 +52877,7 @@ export class ObjectStorageV1Api { * delete a CSIStorageCapacity * @param param the request object */ - public deleteNamespacedCSIStorageCapacity(param: StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public deleteNamespacedCSIStorageCapacity(param: StorageV1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.deleteNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52884,7 +52885,7 @@ export class ObjectStorageV1Api { * delete a StorageClass * @param param the request object */ - public deleteStorageClassWithHttpInfo(param: StorageV1ApiDeleteStorageClassRequest, options?: Configuration): Promise> { + public deleteStorageClassWithHttpInfo(param: StorageV1ApiDeleteStorageClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteStorageClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52892,7 +52893,7 @@ export class ObjectStorageV1Api { * delete a StorageClass * @param param the request object */ - public deleteStorageClass(param: StorageV1ApiDeleteStorageClassRequest, options?: Configuration): Promise { + public deleteStorageClass(param: StorageV1ApiDeleteStorageClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteStorageClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52900,7 +52901,7 @@ export class ObjectStorageV1Api { * delete a VolumeAttachment * @param param the request object */ - public deleteVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteVolumeAttachmentRequest, options?: Configuration): Promise> { + public deleteVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteVolumeAttachmentRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteVolumeAttachmentWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52908,7 +52909,7 @@ export class ObjectStorageV1Api { * delete a VolumeAttachment * @param param the request object */ - public deleteVolumeAttachment(param: StorageV1ApiDeleteVolumeAttachmentRequest, options?: Configuration): Promise { + public deleteVolumeAttachment(param: StorageV1ApiDeleteVolumeAttachmentRequest, options?: ConfigurationOptions): Promise { return this.api.deleteVolumeAttachment(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -52916,7 +52917,7 @@ export class ObjectStorageV1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: StorageV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: StorageV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -52924,7 +52925,7 @@ export class ObjectStorageV1Api { * get available resources * @param param the request object */ - public getAPIResources(param: StorageV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: StorageV1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -52932,7 +52933,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIDriver * @param param the request object */ - public listCSIDriverWithHttpInfo(param: StorageV1ApiListCSIDriverRequest = {}, options?: Configuration): Promise> { + public listCSIDriverWithHttpInfo(param: StorageV1ApiListCSIDriverRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCSIDriverWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52940,7 +52941,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIDriver * @param param the request object */ - public listCSIDriver(param: StorageV1ApiListCSIDriverRequest = {}, options?: Configuration): Promise { + public listCSIDriver(param: StorageV1ApiListCSIDriverRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCSIDriver(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52948,7 +52949,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSINode * @param param the request object */ - public listCSINodeWithHttpInfo(param: StorageV1ApiListCSINodeRequest = {}, options?: Configuration): Promise> { + public listCSINodeWithHttpInfo(param: StorageV1ApiListCSINodeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCSINodeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52956,7 +52957,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSINode * @param param the request object */ - public listCSINode(param: StorageV1ApiListCSINodeRequest = {}, options?: Configuration): Promise { + public listCSINode(param: StorageV1ApiListCSINodeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCSINode(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52964,7 +52965,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIStorageCapacity * @param param the request object */ - public listCSIStorageCapacityForAllNamespacesWithHttpInfo(param: StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: Configuration): Promise> { + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(param: StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52972,7 +52973,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIStorageCapacity * @param param the request object */ - public listCSIStorageCapacityForAllNamespaces(param: StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: Configuration): Promise { + public listCSIStorageCapacityForAllNamespaces(param: StorageV1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listCSIStorageCapacityForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52980,7 +52981,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIStorageCapacity * @param param the request object */ - public listNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiListNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public listNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiListNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.listNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52988,7 +52989,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind CSIStorageCapacity * @param param the request object */ - public listNamespacedCSIStorageCapacity(param: StorageV1ApiListNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public listNamespacedCSIStorageCapacity(param: StorageV1ApiListNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.listNamespacedCSIStorageCapacity(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -52996,7 +52997,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind StorageClass * @param param the request object */ - public listStorageClassWithHttpInfo(param: StorageV1ApiListStorageClassRequest = {}, options?: Configuration): Promise> { + public listStorageClassWithHttpInfo(param: StorageV1ApiListStorageClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listStorageClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53004,7 +53005,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind StorageClass * @param param the request object */ - public listStorageClass(param: StorageV1ApiListStorageClassRequest = {}, options?: Configuration): Promise { + public listStorageClass(param: StorageV1ApiListStorageClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listStorageClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53012,7 +53013,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind VolumeAttachment * @param param the request object */ - public listVolumeAttachmentWithHttpInfo(param: StorageV1ApiListVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + public listVolumeAttachmentWithHttpInfo(param: StorageV1ApiListVolumeAttachmentRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listVolumeAttachmentWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53020,7 +53021,7 @@ export class ObjectStorageV1Api { * list or watch objects of kind VolumeAttachment * @param param the request object */ - public listVolumeAttachment(param: StorageV1ApiListVolumeAttachmentRequest = {}, options?: Configuration): Promise { + public listVolumeAttachment(param: StorageV1ApiListVolumeAttachmentRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listVolumeAttachment(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53028,7 +53029,7 @@ export class ObjectStorageV1Api { * partially update the specified CSIDriver * @param param the request object */ - public patchCSIDriverWithHttpInfo(param: StorageV1ApiPatchCSIDriverRequest, options?: Configuration): Promise> { + public patchCSIDriverWithHttpInfo(param: StorageV1ApiPatchCSIDriverRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCSIDriverWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53036,7 +53037,7 @@ export class ObjectStorageV1Api { * partially update the specified CSIDriver * @param param the request object */ - public patchCSIDriver(param: StorageV1ApiPatchCSIDriverRequest, options?: Configuration): Promise { + public patchCSIDriver(param: StorageV1ApiPatchCSIDriverRequest, options?: ConfigurationOptions): Promise { return this.api.patchCSIDriver(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53044,7 +53045,7 @@ export class ObjectStorageV1Api { * partially update the specified CSINode * @param param the request object */ - public patchCSINodeWithHttpInfo(param: StorageV1ApiPatchCSINodeRequest, options?: Configuration): Promise> { + public patchCSINodeWithHttpInfo(param: StorageV1ApiPatchCSINodeRequest, options?: ConfigurationOptions): Promise> { return this.api.patchCSINodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53052,7 +53053,7 @@ export class ObjectStorageV1Api { * partially update the specified CSINode * @param param the request object */ - public patchCSINode(param: StorageV1ApiPatchCSINodeRequest, options?: Configuration): Promise { + public patchCSINode(param: StorageV1ApiPatchCSINodeRequest, options?: ConfigurationOptions): Promise { return this.api.patchCSINode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53060,7 +53061,7 @@ export class ObjectStorageV1Api { * partially update the specified CSIStorageCapacity * @param param the request object */ - public patchNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public patchNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53068,7 +53069,7 @@ export class ObjectStorageV1Api { * partially update the specified CSIStorageCapacity * @param param the request object */ - public patchNamespacedCSIStorageCapacity(param: StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public patchNamespacedCSIStorageCapacity(param: StorageV1ApiPatchNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.patchNamespacedCSIStorageCapacity(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53076,7 +53077,7 @@ export class ObjectStorageV1Api { * partially update the specified StorageClass * @param param the request object */ - public patchStorageClassWithHttpInfo(param: StorageV1ApiPatchStorageClassRequest, options?: Configuration): Promise> { + public patchStorageClassWithHttpInfo(param: StorageV1ApiPatchStorageClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchStorageClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53084,7 +53085,7 @@ export class ObjectStorageV1Api { * partially update the specified StorageClass * @param param the request object */ - public patchStorageClass(param: StorageV1ApiPatchStorageClassRequest, options?: Configuration): Promise { + public patchStorageClass(param: StorageV1ApiPatchStorageClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchStorageClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53092,7 +53093,7 @@ export class ObjectStorageV1Api { * partially update the specified VolumeAttachment * @param param the request object */ - public patchVolumeAttachmentWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentRequest, options?: Configuration): Promise> { + public patchVolumeAttachmentWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentRequest, options?: ConfigurationOptions): Promise> { return this.api.patchVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53100,7 +53101,7 @@ export class ObjectStorageV1Api { * partially update the specified VolumeAttachment * @param param the request object */ - public patchVolumeAttachment(param: StorageV1ApiPatchVolumeAttachmentRequest, options?: Configuration): Promise { + public patchVolumeAttachment(param: StorageV1ApiPatchVolumeAttachmentRequest, options?: ConfigurationOptions): Promise { return this.api.patchVolumeAttachment(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53108,7 +53109,7 @@ export class ObjectStorageV1Api { * partially update status of the specified VolumeAttachment * @param param the request object */ - public patchVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + public patchVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchVolumeAttachmentStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53116,7 +53117,7 @@ export class ObjectStorageV1Api { * partially update status of the specified VolumeAttachment * @param param the request object */ - public patchVolumeAttachmentStatus(param: StorageV1ApiPatchVolumeAttachmentStatusRequest, options?: Configuration): Promise { + public patchVolumeAttachmentStatus(param: StorageV1ApiPatchVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchVolumeAttachmentStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53124,7 +53125,7 @@ export class ObjectStorageV1Api { * read the specified CSIDriver * @param param the request object */ - public readCSIDriverWithHttpInfo(param: StorageV1ApiReadCSIDriverRequest, options?: Configuration): Promise> { + public readCSIDriverWithHttpInfo(param: StorageV1ApiReadCSIDriverRequest, options?: ConfigurationOptions): Promise> { return this.api.readCSIDriverWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53132,7 +53133,7 @@ export class ObjectStorageV1Api { * read the specified CSIDriver * @param param the request object */ - public readCSIDriver(param: StorageV1ApiReadCSIDriverRequest, options?: Configuration): Promise { + public readCSIDriver(param: StorageV1ApiReadCSIDriverRequest, options?: ConfigurationOptions): Promise { return this.api.readCSIDriver(param.name, param.pretty, options).toPromise(); } @@ -53140,7 +53141,7 @@ export class ObjectStorageV1Api { * read the specified CSINode * @param param the request object */ - public readCSINodeWithHttpInfo(param: StorageV1ApiReadCSINodeRequest, options?: Configuration): Promise> { + public readCSINodeWithHttpInfo(param: StorageV1ApiReadCSINodeRequest, options?: ConfigurationOptions): Promise> { return this.api.readCSINodeWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53148,7 +53149,7 @@ export class ObjectStorageV1Api { * read the specified CSINode * @param param the request object */ - public readCSINode(param: StorageV1ApiReadCSINodeRequest, options?: Configuration): Promise { + public readCSINode(param: StorageV1ApiReadCSINodeRequest, options?: ConfigurationOptions): Promise { return this.api.readCSINode(param.name, param.pretty, options).toPromise(); } @@ -53156,7 +53157,7 @@ export class ObjectStorageV1Api { * read the specified CSIStorageCapacity * @param param the request object */ - public readNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiReadNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public readNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiReadNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.readNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -53164,7 +53165,7 @@ export class ObjectStorageV1Api { * read the specified CSIStorageCapacity * @param param the request object */ - public readNamespacedCSIStorageCapacity(param: StorageV1ApiReadNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public readNamespacedCSIStorageCapacity(param: StorageV1ApiReadNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.readNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, options).toPromise(); } @@ -53172,7 +53173,7 @@ export class ObjectStorageV1Api { * read the specified StorageClass * @param param the request object */ - public readStorageClassWithHttpInfo(param: StorageV1ApiReadStorageClassRequest, options?: Configuration): Promise> { + public readStorageClassWithHttpInfo(param: StorageV1ApiReadStorageClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readStorageClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53180,7 +53181,7 @@ export class ObjectStorageV1Api { * read the specified StorageClass * @param param the request object */ - public readStorageClass(param: StorageV1ApiReadStorageClassRequest, options?: Configuration): Promise { + public readStorageClass(param: StorageV1ApiReadStorageClassRequest, options?: ConfigurationOptions): Promise { return this.api.readStorageClass(param.name, param.pretty, options).toPromise(); } @@ -53188,7 +53189,7 @@ export class ObjectStorageV1Api { * read the specified VolumeAttachment * @param param the request object */ - public readVolumeAttachmentWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentRequest, options?: Configuration): Promise> { + public readVolumeAttachmentWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentRequest, options?: ConfigurationOptions): Promise> { return this.api.readVolumeAttachmentWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53196,7 +53197,7 @@ export class ObjectStorageV1Api { * read the specified VolumeAttachment * @param param the request object */ - public readVolumeAttachment(param: StorageV1ApiReadVolumeAttachmentRequest, options?: Configuration): Promise { + public readVolumeAttachment(param: StorageV1ApiReadVolumeAttachmentRequest, options?: ConfigurationOptions): Promise { return this.api.readVolumeAttachment(param.name, param.pretty, options).toPromise(); } @@ -53204,7 +53205,7 @@ export class ObjectStorageV1Api { * read status of the specified VolumeAttachment * @param param the request object */ - public readVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + public readVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readVolumeAttachmentStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53212,7 +53213,7 @@ export class ObjectStorageV1Api { * read status of the specified VolumeAttachment * @param param the request object */ - public readVolumeAttachmentStatus(param: StorageV1ApiReadVolumeAttachmentStatusRequest, options?: Configuration): Promise { + public readVolumeAttachmentStatus(param: StorageV1ApiReadVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readVolumeAttachmentStatus(param.name, param.pretty, options).toPromise(); } @@ -53220,7 +53221,7 @@ export class ObjectStorageV1Api { * replace the specified CSIDriver * @param param the request object */ - public replaceCSIDriverWithHttpInfo(param: StorageV1ApiReplaceCSIDriverRequest, options?: Configuration): Promise> { + public replaceCSIDriverWithHttpInfo(param: StorageV1ApiReplaceCSIDriverRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCSIDriverWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53228,7 +53229,7 @@ export class ObjectStorageV1Api { * replace the specified CSIDriver * @param param the request object */ - public replaceCSIDriver(param: StorageV1ApiReplaceCSIDriverRequest, options?: Configuration): Promise { + public replaceCSIDriver(param: StorageV1ApiReplaceCSIDriverRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCSIDriver(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53236,7 +53237,7 @@ export class ObjectStorageV1Api { * replace the specified CSINode * @param param the request object */ - public replaceCSINodeWithHttpInfo(param: StorageV1ApiReplaceCSINodeRequest, options?: Configuration): Promise> { + public replaceCSINodeWithHttpInfo(param: StorageV1ApiReplaceCSINodeRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceCSINodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53244,7 +53245,7 @@ export class ObjectStorageV1Api { * replace the specified CSINode * @param param the request object */ - public replaceCSINode(param: StorageV1ApiReplaceCSINodeRequest, options?: Configuration): Promise { + public replaceCSINode(param: StorageV1ApiReplaceCSINodeRequest, options?: ConfigurationOptions): Promise { return this.api.replaceCSINode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53252,7 +53253,7 @@ export class ObjectStorageV1Api { * replace the specified CSIStorageCapacity * @param param the request object */ - public replaceNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + public replaceNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53260,7 +53261,7 @@ export class ObjectStorageV1Api { * replace the specified CSIStorageCapacity * @param param the request object */ - public replaceNamespacedCSIStorageCapacity(param: StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise { + public replaceNamespacedCSIStorageCapacity(param: StorageV1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: ConfigurationOptions): Promise { return this.api.replaceNamespacedCSIStorageCapacity(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53268,7 +53269,7 @@ export class ObjectStorageV1Api { * replace the specified StorageClass * @param param the request object */ - public replaceStorageClassWithHttpInfo(param: StorageV1ApiReplaceStorageClassRequest, options?: Configuration): Promise> { + public replaceStorageClassWithHttpInfo(param: StorageV1ApiReplaceStorageClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceStorageClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53276,7 +53277,7 @@ export class ObjectStorageV1Api { * replace the specified StorageClass * @param param the request object */ - public replaceStorageClass(param: StorageV1ApiReplaceStorageClassRequest, options?: Configuration): Promise { + public replaceStorageClass(param: StorageV1ApiReplaceStorageClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceStorageClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53284,7 +53285,7 @@ export class ObjectStorageV1Api { * replace the specified VolumeAttachment * @param param the request object */ - public replaceVolumeAttachmentWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentRequest, options?: Configuration): Promise> { + public replaceVolumeAttachmentWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53292,7 +53293,7 @@ export class ObjectStorageV1Api { * replace the specified VolumeAttachment * @param param the request object */ - public replaceVolumeAttachment(param: StorageV1ApiReplaceVolumeAttachmentRequest, options?: Configuration): Promise { + public replaceVolumeAttachment(param: StorageV1ApiReplaceVolumeAttachmentRequest, options?: ConfigurationOptions): Promise { return this.api.replaceVolumeAttachment(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53300,7 +53301,7 @@ export class ObjectStorageV1Api { * replace status of the specified VolumeAttachment * @param param the request object */ - public replaceVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + public replaceVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceVolumeAttachmentStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53308,7 +53309,7 @@ export class ObjectStorageV1Api { * replace status of the specified VolumeAttachment * @param param the request object */ - public replaceVolumeAttachmentStatus(param: StorageV1ApiReplaceVolumeAttachmentStatusRequest, options?: Configuration): Promise { + public replaceVolumeAttachmentStatus(param: StorageV1ApiReplaceVolumeAttachmentStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceVolumeAttachmentStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53725,7 +53726,7 @@ export class ObjectStorageV1alpha1Api { * create a VolumeAttributesClass * @param param the request object */ - public createVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiCreateVolumeAttributesClassRequest, options?: Configuration): Promise> { + public createVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiCreateVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createVolumeAttributesClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53733,7 +53734,7 @@ export class ObjectStorageV1alpha1Api { * create a VolumeAttributesClass * @param param the request object */ - public createVolumeAttributesClass(param: StorageV1alpha1ApiCreateVolumeAttributesClassRequest, options?: Configuration): Promise { + public createVolumeAttributesClass(param: StorageV1alpha1ApiCreateVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.createVolumeAttributesClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53741,7 +53742,7 @@ export class ObjectStorageV1alpha1Api { * delete collection of VolumeAttributesClass * @param param the request object */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -53749,7 +53750,7 @@ export class ObjectStorageV1alpha1Api { * delete collection of VolumeAttributesClass * @param param the request object */ - public deleteCollectionVolumeAttributesClass(param: StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionVolumeAttributesClass(param: StorageV1alpha1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionVolumeAttributesClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -53757,7 +53758,7 @@ export class ObjectStorageV1alpha1Api { * delete a VolumeAttributesClass * @param param the request object */ - public deleteVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, options?: Configuration): Promise> { + public deleteVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteVolumeAttributesClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -53765,7 +53766,7 @@ export class ObjectStorageV1alpha1Api { * delete a VolumeAttributesClass * @param param the request object */ - public deleteVolumeAttributesClass(param: StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, options?: Configuration): Promise { + public deleteVolumeAttributesClass(param: StorageV1alpha1ApiDeleteVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteVolumeAttributesClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -53773,7 +53774,7 @@ export class ObjectStorageV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: StorageV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: StorageV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -53781,7 +53782,7 @@ export class ObjectStorageV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResources(param: StorageV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: StorageV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -53789,7 +53790,7 @@ export class ObjectStorageV1alpha1Api { * list or watch objects of kind VolumeAttributesClass * @param param the request object */ - public listVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiListVolumeAttributesClassRequest = {}, options?: Configuration): Promise> { + public listVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiListVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listVolumeAttributesClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53797,7 +53798,7 @@ export class ObjectStorageV1alpha1Api { * list or watch objects of kind VolumeAttributesClass * @param param the request object */ - public listVolumeAttributesClass(param: StorageV1alpha1ApiListVolumeAttributesClassRequest = {}, options?: Configuration): Promise { + public listVolumeAttributesClass(param: StorageV1alpha1ApiListVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listVolumeAttributesClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -53805,7 +53806,7 @@ export class ObjectStorageV1alpha1Api { * partially update the specified VolumeAttributesClass * @param param the request object */ - public patchVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiPatchVolumeAttributesClassRequest, options?: Configuration): Promise> { + public patchVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiPatchVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchVolumeAttributesClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53813,7 +53814,7 @@ export class ObjectStorageV1alpha1Api { * partially update the specified VolumeAttributesClass * @param param the request object */ - public patchVolumeAttributesClass(param: StorageV1alpha1ApiPatchVolumeAttributesClassRequest, options?: Configuration): Promise { + public patchVolumeAttributesClass(param: StorageV1alpha1ApiPatchVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchVolumeAttributesClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -53821,7 +53822,7 @@ export class ObjectStorageV1alpha1Api { * read the specified VolumeAttributesClass * @param param the request object */ - public readVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiReadVolumeAttributesClassRequest, options?: Configuration): Promise> { + public readVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiReadVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readVolumeAttributesClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -53829,7 +53830,7 @@ export class ObjectStorageV1alpha1Api { * read the specified VolumeAttributesClass * @param param the request object */ - public readVolumeAttributesClass(param: StorageV1alpha1ApiReadVolumeAttributesClassRequest, options?: Configuration): Promise { + public readVolumeAttributesClass(param: StorageV1alpha1ApiReadVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.readVolumeAttributesClass(param.name, param.pretty, options).toPromise(); } @@ -53837,7 +53838,7 @@ export class ObjectStorageV1alpha1Api { * replace the specified VolumeAttributesClass * @param param the request object */ - public replaceVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, options?: Configuration): Promise> { + public replaceVolumeAttributesClassWithHttpInfo(param: StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceVolumeAttributesClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -53845,7 +53846,7 @@ export class ObjectStorageV1alpha1Api { * replace the specified VolumeAttributesClass * @param param the request object */ - public replaceVolumeAttributesClass(param: StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, options?: Configuration): Promise { + public replaceVolumeAttributesClass(param: StorageV1alpha1ApiReplaceVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceVolumeAttributesClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54262,7 +54263,7 @@ export class ObjectStorageV1beta1Api { * create a VolumeAttributesClass * @param param the request object */ - public createVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiCreateVolumeAttributesClassRequest, options?: Configuration): Promise> { + public createVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiCreateVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.createVolumeAttributesClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54270,7 +54271,7 @@ export class ObjectStorageV1beta1Api { * create a VolumeAttributesClass * @param param the request object */ - public createVolumeAttributesClass(param: StorageV1beta1ApiCreateVolumeAttributesClassRequest, options?: Configuration): Promise { + public createVolumeAttributesClass(param: StorageV1beta1ApiCreateVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.createVolumeAttributesClass(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54278,7 +54279,7 @@ export class ObjectStorageV1beta1Api { * delete collection of VolumeAttributesClass * @param param the request object */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: Configuration): Promise> { + public deleteCollectionVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -54286,7 +54287,7 @@ export class ObjectStorageV1beta1Api { * delete collection of VolumeAttributesClass * @param param the request object */ - public deleteCollectionVolumeAttributesClass(param: StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: Configuration): Promise { + public deleteCollectionVolumeAttributesClass(param: StorageV1beta1ApiDeleteCollectionVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionVolumeAttributesClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -54294,7 +54295,7 @@ export class ObjectStorageV1beta1Api { * delete a VolumeAttributesClass * @param param the request object */ - public deleteVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiDeleteVolumeAttributesClassRequest, options?: Configuration): Promise> { + public deleteVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiDeleteVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteVolumeAttributesClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -54302,7 +54303,7 @@ export class ObjectStorageV1beta1Api { * delete a VolumeAttributesClass * @param param the request object */ - public deleteVolumeAttributesClass(param: StorageV1beta1ApiDeleteVolumeAttributesClassRequest, options?: Configuration): Promise { + public deleteVolumeAttributesClass(param: StorageV1beta1ApiDeleteVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.deleteVolumeAttributesClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -54310,7 +54311,7 @@ export class ObjectStorageV1beta1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: StorageV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: StorageV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -54318,7 +54319,7 @@ export class ObjectStorageV1beta1Api { * get available resources * @param param the request object */ - public getAPIResources(param: StorageV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: StorageV1beta1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -54326,7 +54327,7 @@ export class ObjectStorageV1beta1Api { * list or watch objects of kind VolumeAttributesClass * @param param the request object */ - public listVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiListVolumeAttributesClassRequest = {}, options?: Configuration): Promise> { + public listVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiListVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listVolumeAttributesClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -54334,7 +54335,7 @@ export class ObjectStorageV1beta1Api { * list or watch objects of kind VolumeAttributesClass * @param param the request object */ - public listVolumeAttributesClass(param: StorageV1beta1ApiListVolumeAttributesClassRequest = {}, options?: Configuration): Promise { + public listVolumeAttributesClass(param: StorageV1beta1ApiListVolumeAttributesClassRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listVolumeAttributesClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -54342,7 +54343,7 @@ export class ObjectStorageV1beta1Api { * partially update the specified VolumeAttributesClass * @param param the request object */ - public patchVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiPatchVolumeAttributesClassRequest, options?: Configuration): Promise> { + public patchVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiPatchVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.patchVolumeAttributesClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -54350,7 +54351,7 @@ export class ObjectStorageV1beta1Api { * partially update the specified VolumeAttributesClass * @param param the request object */ - public patchVolumeAttributesClass(param: StorageV1beta1ApiPatchVolumeAttributesClassRequest, options?: Configuration): Promise { + public patchVolumeAttributesClass(param: StorageV1beta1ApiPatchVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.patchVolumeAttributesClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -54358,7 +54359,7 @@ export class ObjectStorageV1beta1Api { * read the specified VolumeAttributesClass * @param param the request object */ - public readVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiReadVolumeAttributesClassRequest, options?: Configuration): Promise> { + public readVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiReadVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.readVolumeAttributesClassWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -54366,7 +54367,7 @@ export class ObjectStorageV1beta1Api { * read the specified VolumeAttributesClass * @param param the request object */ - public readVolumeAttributesClass(param: StorageV1beta1ApiReadVolumeAttributesClassRequest, options?: Configuration): Promise { + public readVolumeAttributesClass(param: StorageV1beta1ApiReadVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.readVolumeAttributesClass(param.name, param.pretty, options).toPromise(); } @@ -54374,7 +54375,7 @@ export class ObjectStorageV1beta1Api { * replace the specified VolumeAttributesClass * @param param the request object */ - public replaceVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiReplaceVolumeAttributesClassRequest, options?: Configuration): Promise> { + public replaceVolumeAttributesClassWithHttpInfo(param: StorageV1beta1ApiReplaceVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceVolumeAttributesClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54382,7 +54383,7 @@ export class ObjectStorageV1beta1Api { * replace the specified VolumeAttributesClass * @param param the request object */ - public replaceVolumeAttributesClass(param: StorageV1beta1ApiReplaceVolumeAttributesClassRequest, options?: Configuration): Promise { + public replaceVolumeAttributesClass(param: StorageV1beta1ApiReplaceVolumeAttributesClassRequest, options?: ConfigurationOptions): Promise { return this.api.replaceVolumeAttributesClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54405,7 +54406,7 @@ export class ObjectStoragemigrationApi { * get information of a group * @param param the request object */ - public getAPIGroupWithHttpInfo(param: StoragemigrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + public getAPIGroupWithHttpInfo(param: StoragemigrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIGroupWithHttpInfo( options).toPromise(); } @@ -54413,7 +54414,7 @@ export class ObjectStoragemigrationApi { * get information of a group * @param param the request object */ - public getAPIGroup(param: StoragemigrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise { + public getAPIGroup(param: StoragemigrationApiGetAPIGroupRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIGroup( options).toPromise(); } @@ -54942,7 +54943,7 @@ export class ObjectStoragemigrationV1alpha1Api { * create a StorageVersionMigration * @param param the request object */ - public createStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, options?: Configuration): Promise> { + public createStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise> { return this.api.createStorageVersionMigrationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54950,7 +54951,7 @@ export class ObjectStoragemigrationV1alpha1Api { * create a StorageVersionMigration * @param param the request object */ - public createStorageVersionMigration(param: StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, options?: Configuration): Promise { + public createStorageVersionMigration(param: StoragemigrationV1alpha1ApiCreateStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise { return this.api.createStorageVersionMigration(param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -54958,7 +54959,7 @@ export class ObjectStoragemigrationV1alpha1Api { * delete collection of StorageVersionMigration * @param param the request object */ - public deleteCollectionStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest = {}, options?: Configuration): Promise> { + public deleteCollectionStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.deleteCollectionStorageVersionMigrationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -54966,7 +54967,7 @@ export class ObjectStoragemigrationV1alpha1Api { * delete collection of StorageVersionMigration * @param param the request object */ - public deleteCollectionStorageVersionMigration(param: StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest = {}, options?: Configuration): Promise { + public deleteCollectionStorageVersionMigration(param: StoragemigrationV1alpha1ApiDeleteCollectionStorageVersionMigrationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.deleteCollectionStorageVersionMigration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.body, options).toPromise(); } @@ -54974,7 +54975,7 @@ export class ObjectStoragemigrationV1alpha1Api { * delete a StorageVersionMigration * @param param the request object */ - public deleteStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, options?: Configuration): Promise> { + public deleteStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise> { return this.api.deleteStorageVersionMigrationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -54982,7 +54983,7 @@ export class ObjectStoragemigrationV1alpha1Api { * delete a StorageVersionMigration * @param param the request object */ - public deleteStorageVersionMigration(param: StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, options?: Configuration): Promise { + public deleteStorageVersionMigration(param: StoragemigrationV1alpha1ApiDeleteStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise { return this.api.deleteStorageVersionMigration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.ignoreStoreReadErrorWithClusterBreakingPotential, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } @@ -54990,7 +54991,7 @@ export class ObjectStoragemigrationV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResourcesWithHttpInfo(param: StoragemigrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + public getAPIResourcesWithHttpInfo(param: StoragemigrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); } @@ -54998,7 +54999,7 @@ export class ObjectStoragemigrationV1alpha1Api { * get available resources * @param param the request object */ - public getAPIResources(param: StoragemigrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise { + public getAPIResources(param: StoragemigrationV1alpha1ApiGetAPIResourcesRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getAPIResources( options).toPromise(); } @@ -55006,7 +55007,7 @@ export class ObjectStoragemigrationV1alpha1Api { * list or watch objects of kind StorageVersionMigration * @param param the request object */ - public listStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest = {}, options?: Configuration): Promise> { + public listStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.listStorageVersionMigrationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -55014,7 +55015,7 @@ export class ObjectStoragemigrationV1alpha1Api { * list or watch objects of kind StorageVersionMigration * @param param the request object */ - public listStorageVersionMigration(param: StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest = {}, options?: Configuration): Promise { + public listStorageVersionMigration(param: StoragemigrationV1alpha1ApiListStorageVersionMigrationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.listStorageVersionMigration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.sendInitialEvents, param.timeoutSeconds, param.watch, options).toPromise(); } @@ -55022,7 +55023,7 @@ export class ObjectStoragemigrationV1alpha1Api { * partially update the specified StorageVersionMigration * @param param the request object */ - public patchStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, options?: Configuration): Promise> { + public patchStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise> { return this.api.patchStorageVersionMigrationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -55030,7 +55031,7 @@ export class ObjectStoragemigrationV1alpha1Api { * partially update the specified StorageVersionMigration * @param param the request object */ - public patchStorageVersionMigration(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, options?: Configuration): Promise { + public patchStorageVersionMigration(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise { return this.api.patchStorageVersionMigration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -55038,7 +55039,7 @@ export class ObjectStoragemigrationV1alpha1Api { * partially update status of the specified StorageVersionMigration * @param param the request object */ - public patchStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, options?: Configuration): Promise> { + public patchStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.patchStorageVersionMigrationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -55046,7 +55047,7 @@ export class ObjectStoragemigrationV1alpha1Api { * partially update status of the specified StorageVersionMigration * @param param the request object */ - public patchStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, options?: Configuration): Promise { + public patchStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiPatchStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.patchStorageVersionMigrationStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, param.force, options).toPromise(); } @@ -55054,7 +55055,7 @@ export class ObjectStoragemigrationV1alpha1Api { * read the specified StorageVersionMigration * @param param the request object */ - public readStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, options?: Configuration): Promise> { + public readStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise> { return this.api.readStorageVersionMigrationWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -55062,7 +55063,7 @@ export class ObjectStoragemigrationV1alpha1Api { * read the specified StorageVersionMigration * @param param the request object */ - public readStorageVersionMigration(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, options?: Configuration): Promise { + public readStorageVersionMigration(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise { return this.api.readStorageVersionMigration(param.name, param.pretty, options).toPromise(); } @@ -55070,7 +55071,7 @@ export class ObjectStoragemigrationV1alpha1Api { * read status of the specified StorageVersionMigration * @param param the request object */ - public readStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, options?: Configuration): Promise> { + public readStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.readStorageVersionMigrationStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); } @@ -55078,7 +55079,7 @@ export class ObjectStoragemigrationV1alpha1Api { * read status of the specified StorageVersionMigration * @param param the request object */ - public readStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, options?: Configuration): Promise { + public readStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiReadStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.readStorageVersionMigrationStatus(param.name, param.pretty, options).toPromise(); } @@ -55086,7 +55087,7 @@ export class ObjectStoragemigrationV1alpha1Api { * replace the specified StorageVersionMigration * @param param the request object */ - public replaceStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, options?: Configuration): Promise> { + public replaceStorageVersionMigrationWithHttpInfo(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceStorageVersionMigrationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -55094,7 +55095,7 @@ export class ObjectStoragemigrationV1alpha1Api { * replace the specified StorageVersionMigration * @param param the request object */ - public replaceStorageVersionMigration(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, options?: Configuration): Promise { + public replaceStorageVersionMigration(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationRequest, options?: ConfigurationOptions): Promise { return this.api.replaceStorageVersionMigration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -55102,7 +55103,7 @@ export class ObjectStoragemigrationV1alpha1Api { * replace status of the specified StorageVersionMigration * @param param the request object */ - public replaceStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, options?: Configuration): Promise> { + public replaceStorageVersionMigrationStatusWithHttpInfo(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise> { return this.api.replaceStorageVersionMigrationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -55110,7 +55111,7 @@ export class ObjectStoragemigrationV1alpha1Api { * replace status of the specified StorageVersionMigration * @param param the request object */ - public replaceStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, options?: Configuration): Promise { + public replaceStorageVersionMigrationStatus(param: StoragemigrationV1alpha1ApiReplaceStorageVersionMigrationStatusRequest, options?: ConfigurationOptions): Promise { return this.api.replaceStorageVersionMigrationStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.fieldValidation, options).toPromise(); } @@ -55133,7 +55134,7 @@ export class ObjectVersionApi { * get the code version * @param param the request object */ - public getCodeWithHttpInfo(param: VersionApiGetCodeRequest = {}, options?: Configuration): Promise> { + public getCodeWithHttpInfo(param: VersionApiGetCodeRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getCodeWithHttpInfo( options).toPromise(); } @@ -55141,7 +55142,7 @@ export class ObjectVersionApi { * get the code version * @param param the request object */ - public getCode(param: VersionApiGetCodeRequest = {}, options?: Configuration): Promise { + public getCode(param: VersionApiGetCodeRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getCode( options).toPromise(); } @@ -55164,7 +55165,7 @@ export class ObjectWellKnownApi { * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' * @param param the request object */ - public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(param: WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest = {}, options?: Configuration): Promise> { + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(param: WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest = {}, options?: ConfigurationOptions): Promise> { return this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo( options).toPromise(); } @@ -55172,7 +55173,7 @@ export class ObjectWellKnownApi { * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' * @param param the request object */ - public getServiceAccountIssuerOpenIDConfiguration(param: WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest = {}, options?: Configuration): Promise { + public getServiceAccountIssuerOpenIDConfiguration(param: WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest = {}, options?: ConfigurationOptions): Promise { return this.api.getServiceAccountIssuerOpenIDConfiguration( options).toPromise(); } diff --git a/src/gen/types/ObservableAPI.ts b/src/gen/types/ObservableAPI.ts index 1320b0f26fe..ed0217525fe 100644 --- a/src/gen/types/ObservableAPI.ts +++ b/src/gen/types/ObservableAPI.ts @@ -1,5 +1,6 @@ import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http.js'; -import { Configuration} from '../configuration.js' +import { Configuration, ConfigurationOptions } from '../configuration.js' +import type { Middleware } from '../middleware.js'; import { Observable, of, from } from '../rxjsStub.js'; import {mergeMap, map} from '../rxjsStub.js'; import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference.js'; @@ -647,19 +648,48 @@ export class ObservableAdmissionregistrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -669,7 +699,7 @@ export class ObservableAdmissionregistrationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -699,19 +729,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -726,7 +785,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -738,19 +797,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyWithHttpInfo(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyWithHttpInfo(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -765,7 +853,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicy(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createValidatingAdmissionPolicy(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -777,19 +865,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -804,7 +921,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBinding(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createValidatingAdmissionPolicyBinding(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -816,19 +933,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -843,7 +989,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -865,19 +1011,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -902,7 +1077,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingWebhookConfiguration(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): Observable { + public deleteCollectionMutatingWebhookConfiguration(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?: ConfigurationOptions): Observable { return this.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -924,19 +1099,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -961,7 +1165,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -983,19 +1187,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1020,7 +1253,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1042,19 +1275,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1079,7 +1341,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingWebhookConfiguration(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): Observable { + public deleteCollectionValidatingWebhookConfiguration(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?: ConfigurationOptions): Observable { return this.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1094,19 +1356,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1124,7 +1415,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1139,19 +1430,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1169,7 +1489,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1184,19 +1504,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1214,7 +1563,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1229,19 +1578,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1259,26 +1637,55 @@ export class ObservableAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -1288,7 +1695,7 @@ export class ObservableAdmissionregistrationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1306,19 +1713,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 listMutatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1339,7 +1775,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 listMutatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listMutatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1357,19 +1793,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1390,7 +1855,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 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): Observable { + public listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1408,19 +1873,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1441,7 +1935,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 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): Observable { + public listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1459,19 +1953,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 listValidatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1492,7 +2015,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 listValidatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listValidatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1506,19 +2029,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1535,7 +2087,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchMutatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1549,19 +2101,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1578,7 +2159,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1592,19 +2173,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1621,7 +2231,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1635,19 +2245,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -1664,7 +2303,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1678,19 +2317,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1707,7 +2375,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1716,19 +2384,48 @@ export class ObservableAdmissionregistrationV1Api { * @param name name of the MutatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readMutatingWebhookConfiguration(name, pretty, _options); + public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readMutatingWebhookConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1740,7 +2437,7 @@ export class ObservableAdmissionregistrationV1Api { * @param name name of the MutatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1749,19 +2446,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _options); + public readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1773,7 +2499,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1782,19 +2508,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _options); + public readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1806,7 +2561,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1815,19 +2570,48 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _options); + public readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -1839,7 +2623,7 @@ export class ObservableAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1848,19 +2632,48 @@ export class ObservableAdmissionregistrationV1Api { * @param name name of the ValidatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingWebhookConfiguration(name, pretty, _options); + public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readValidatingWebhookConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1872,7 +2685,7 @@ export class ObservableAdmissionregistrationV1Api { * @param name name of the ValidatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1885,19 +2698,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingWebhookConfigurationWithHttpInfo(rsp))); @@ -1913,7 +2755,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1926,19 +2768,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -1954,7 +2825,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicy(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicy(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -1967,19 +2838,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -1995,7 +2895,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBinding(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicyBinding(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2008,19 +2908,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -2036,7 +2965,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatus(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicyStatus(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2049,19 +2978,48 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingWebhookConfigurationWithHttpInfo(rsp))); @@ -2077,7 +3035,7 @@ export class ObservableAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2107,19 +3065,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyWithHttpInfo(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicyWithHttpInfo(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2134,7 +3121,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicy(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createMutatingAdmissionPolicy(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2146,19 +3133,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyBindingWithHttpInfo(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicyBindingWithHttpInfo(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2173,7 +3189,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyBinding(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createMutatingAdmissionPolicyBinding(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2195,19 +3211,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2232,7 +3277,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2254,19 +3299,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2291,7 +3365,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2306,19 +3380,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2336,7 +3439,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2351,19 +3454,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2381,26 +3513,55 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -2410,7 +3571,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2428,19 +3589,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 listMutatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2461,7 +3651,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 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): Observable { + public listMutatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2479,19 +3669,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 listMutatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2512,7 +3731,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 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): Observable { + public listMutatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2526,19 +3745,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2555,7 +3803,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2569,19 +3817,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2598,7 +3875,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2607,19 +3884,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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). */ - public readMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicy(name, pretty, _options); + public readMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2631,7 +3937,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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). */ - public readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Observable { + public readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readMutatingAdmissionPolicyWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2640,19 +3946,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 readMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicyBinding(name, pretty, _options); + public readMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readMutatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2664,7 +3999,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @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 readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Observable { + public readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2677,19 +4012,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicyWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2705,7 +4069,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicy(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceMutatingAdmissionPolicy(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2718,19 +4082,48 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2746,7 +4139,7 @@ export class ObservableAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyBinding(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceMutatingAdmissionPolicyBinding(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2776,19 +4169,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyWithHttpInfo(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyWithHttpInfo(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2803,7 +4225,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2815,19 +4237,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2842,7 +4293,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2864,19 +4315,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -2901,7 +4381,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2923,19 +4403,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -2960,7 +4469,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -2975,19 +4484,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3005,7 +4543,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3020,19 +4558,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3050,26 +4617,55 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -3079,7 +4675,7 @@ export class ObservableAdmissionregistrationV1beta1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3097,19 +4693,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3130,7 +4755,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 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): Observable { + public listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3148,19 +4773,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3181,7 +4835,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 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): Observable { + public listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3195,19 +4849,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3224,7 +4907,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3238,19 +4921,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3267,7 +4979,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3281,19 +4993,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -3310,7 +5051,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3319,19 +5060,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _options); + public readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicy(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3343,7 +5113,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3352,19 +5122,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _options); + public readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3376,7 +5175,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3385,19 +5184,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _options); + public readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readValidatingAdmissionPolicyStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -3409,7 +5237,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3422,19 +5250,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyWithHttpInfo(rsp))); @@ -3450,7 +5307,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3463,19 +5320,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyBindingWithHttpInfo(rsp))); @@ -3491,7 +5377,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3504,19 +5390,48 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingAdmissionPolicyStatusWithHttpInfo(rsp))); @@ -3532,7 +5447,7 @@ export class ObservableAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3557,19 +5472,48 @@ export class ObservableApiextensionsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -3579,7 +5523,7 @@ export class ObservableApiextensionsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3609,19 +5553,48 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3636,7 +5609,7 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3658,19 +5631,48 @@ export class ObservableApiextensionsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCustomResourceDefinitionWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCustomResourceDefinitionWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3695,7 +5697,7 @@ export class ObservableApiextensionsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCustomResourceDefinition(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): Observable { + public deleteCollectionCustomResourceDefinition(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?: ConfigurationOptions): Observable { return this.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3710,19 +5712,48 @@ export class ObservableApiextensionsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3740,26 +5771,55 @@ export class ObservableApiextensionsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -3769,7 +5829,7 @@ export class ObservableApiextensionsV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3787,19 +5847,48 @@ export class ObservableApiextensionsV1Api { * @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 listCustomResourceDefinitionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCustomResourceDefinitionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3820,7 +5909,7 @@ export class ObservableApiextensionsV1Api { * @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 listCustomResourceDefinition(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCustomResourceDefinition(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3834,19 +5923,48 @@ export class ObservableApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinitionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3863,7 +5981,7 @@ export class ObservableApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinition(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCustomResourceDefinition(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3877,19 +5995,48 @@ export class ObservableApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinitionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -3906,7 +6053,7 @@ export class ObservableApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCustomResourceDefinitionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3915,19 +6062,48 @@ export class ObservableApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCustomResourceDefinition(name, pretty, _options); + public readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readCustomResourceDefinition(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionWithHttpInfo(rsp))); @@ -3939,7 +6115,7 @@ export class ObservableApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinition(name: string, pretty?: string, _options?: Configuration): Observable { + public readCustomResourceDefinition(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCustomResourceDefinitionWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3948,19 +6124,48 @@ export class ObservableApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCustomResourceDefinitionStatus(name, pretty, _options); + public readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readCustomResourceDefinitionStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -3972,7 +6177,7 @@ export class ObservableApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -3985,19 +6190,48 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionWithHttpInfo(rsp))); @@ -4013,7 +6247,7 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4026,19 +6260,48 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionStatusWithHttpInfo(rsp))); @@ -4054,7 +6317,7 @@ export class ObservableApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4079,19 +6342,48 @@ export class ObservableApiregistrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -4101,7 +6393,7 @@ export class ObservableApiregistrationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4131,19 +6423,48 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAPIServiceWithHttpInfo(rsp))); @@ -4158,7 +6479,7 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4173,19 +6494,48 @@ export class ObservableApiregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAPIServiceWithHttpInfo(rsp))); @@ -4203,7 +6553,7 @@ export class ObservableApiregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4225,19 +6575,48 @@ export class ObservableApiregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionAPIServiceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionAPIServiceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionAPIServiceWithHttpInfo(rsp))); @@ -4262,26 +6641,55 @@ export class ObservableApiregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionAPIService(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): Observable { + public deleteCollectionAPIService(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?: ConfigurationOptions): Observable { return this.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -4291,7 +6699,7 @@ export class ObservableApiregistrationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4309,19 +6717,48 @@ export class ObservableApiregistrationV1Api { * @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 listAPIServiceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listAPIServiceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAPIServiceWithHttpInfo(rsp))); @@ -4342,7 +6779,7 @@ export class ObservableApiregistrationV1Api { * @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 listAPIService(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listAPIService(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4356,19 +6793,48 @@ export class ObservableApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIServiceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceWithHttpInfo(rsp))); @@ -4385,7 +6851,7 @@ export class ObservableApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIService(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchAPIService(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4399,19 +6865,48 @@ export class ObservableApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIServiceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceStatusWithHttpInfo(rsp))); @@ -4428,7 +6923,7 @@ export class ObservableApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchAPIServiceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4437,19 +6932,48 @@ export class ObservableApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readAPIService(name, pretty, _options); + public readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readAPIService(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceWithHttpInfo(rsp))); @@ -4461,7 +6985,7 @@ export class ObservableApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIService(name: string, pretty?: string, _options?: Configuration): Observable { + public readAPIService(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readAPIServiceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4470,19 +6994,48 @@ export class ObservableApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readAPIServiceStatus(name, pretty, _options); + public readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readAPIServiceStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceStatusWithHttpInfo(rsp))); @@ -4494,7 +7047,7 @@ export class ObservableApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readAPIServiceStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readAPIServiceStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4507,19 +7060,48 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceWithHttpInfo(rsp))); @@ -4535,7 +7117,7 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4548,19 +7130,48 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceStatusWithHttpInfo(rsp))); @@ -4576,7 +7187,7 @@ export class ObservableApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4601,19 +7212,48 @@ export class ObservableApisApi { /** * get available API versions */ - public getAPIVersionsWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIVersions(_options); + public getAPIVersionsWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIVersions(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); @@ -4623,7 +7263,7 @@ export class ObservableApisApi { /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Observable { + public getAPIVersions(_options?: ConfigurationOptions): Observable { return this.getAPIVersionsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4648,19 +7288,48 @@ export class ObservableAppsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -4670,7 +7339,7 @@ export class ObservableAppsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4701,19 +7370,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -4729,7 +7427,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4742,19 +7440,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDaemonSetWithHttpInfo(rsp))); @@ -4770,7 +7497,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4783,19 +7510,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDeploymentWithHttpInfo(rsp))); @@ -4811,7 +7567,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4824,19 +7580,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicaSetWithHttpInfo(rsp))); @@ -4852,7 +7637,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4865,19 +7650,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedStatefulSetWithHttpInfo(rsp))); @@ -4893,7 +7707,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4916,19 +7730,48 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedControllerRevisionWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -4954,7 +7797,7 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedControllerRevision(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): Observable { + public deleteCollectionNamespacedControllerRevision(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -4977,19 +7820,48 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDaemonSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDaemonSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDaemonSetWithHttpInfo(rsp))); @@ -5015,7 +7887,7 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDaemonSet(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): Observable { + public deleteCollectionNamespacedDaemonSet(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5038,19 +7910,48 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDeploymentWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDeploymentWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDeploymentWithHttpInfo(rsp))); @@ -5076,7 +7977,7 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDeployment(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): Observable { + public deleteCollectionNamespacedDeployment(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5099,19 +8000,48 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicaSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicaSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicaSetWithHttpInfo(rsp))); @@ -5137,7 +8067,7 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicaSet(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): Observable { + public deleteCollectionNamespacedReplicaSet(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5160,19 +8090,48 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedStatefulSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedStatefulSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedStatefulSetWithHttpInfo(rsp))); @@ -5198,7 +8157,7 @@ export class ObservableAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedStatefulSet(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): Observable { + public deleteCollectionNamespacedStatefulSet(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5214,19 +8173,48 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -5245,7 +8233,7 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5261,19 +8249,48 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDaemonSetWithHttpInfo(rsp))); @@ -5292,7 +8309,7 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5308,19 +8325,48 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDeploymentWithHttpInfo(rsp))); @@ -5339,7 +8385,7 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5355,19 +8401,48 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicaSetWithHttpInfo(rsp))); @@ -5386,7 +8461,7 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5402,19 +8477,48 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedStatefulSetWithHttpInfo(rsp))); @@ -5433,26 +8537,55 @@ export class ObservableAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -5462,7 +8595,7 @@ export class ObservableAppsV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5480,19 +8613,48 @@ export class ObservableAppsV1Api { * @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 listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listControllerRevisionForAllNamespacesWithHttpInfo(rsp))); @@ -5513,7 +8675,7 @@ export class ObservableAppsV1Api { * @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 listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5531,19 +8693,48 @@ export class ObservableAppsV1Api { * @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 listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDaemonSetForAllNamespacesWithHttpInfo(rsp))); @@ -5564,7 +8755,7 @@ export class ObservableAppsV1Api { * @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 listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5582,19 +8773,48 @@ export class ObservableAppsV1Api { * @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 listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeploymentForAllNamespacesWithHttpInfo(rsp))); @@ -5615,7 +8835,7 @@ export class ObservableAppsV1Api { * @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 listDeploymentForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listDeploymentForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5634,19 +8854,48 @@ export class ObservableAppsV1Api { * @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 listNamespacedControllerRevisionWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedControllerRevisionWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -5668,7 +8917,7 @@ export class ObservableAppsV1Api { * @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 listNamespacedControllerRevision(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): Observable { + public listNamespacedControllerRevision(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?: ConfigurationOptions): Observable { return this.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5687,19 +8936,48 @@ export class ObservableAppsV1Api { * @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 listNamespacedDaemonSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDaemonSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDaemonSetWithHttpInfo(rsp))); @@ -5721,7 +8999,7 @@ export class ObservableAppsV1Api { * @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 listNamespacedDaemonSet(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): Observable { + public listNamespacedDaemonSet(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?: ConfigurationOptions): Observable { return this.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5740,19 +9018,48 @@ export class ObservableAppsV1Api { * @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 listNamespacedDeploymentWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDeploymentWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDeploymentWithHttpInfo(rsp))); @@ -5774,7 +9081,7 @@ export class ObservableAppsV1Api { * @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 listNamespacedDeployment(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): Observable { + public listNamespacedDeployment(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?: ConfigurationOptions): Observable { return this.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5793,19 +9100,48 @@ export class ObservableAppsV1Api { * @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 listNamespacedReplicaSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicaSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicaSetWithHttpInfo(rsp))); @@ -5827,7 +9163,7 @@ export class ObservableAppsV1Api { * @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 listNamespacedReplicaSet(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): Observable { + public listNamespacedReplicaSet(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?: ConfigurationOptions): Observable { return this.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5846,19 +9182,48 @@ export class ObservableAppsV1Api { * @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 listNamespacedStatefulSetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedStatefulSetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedStatefulSetWithHttpInfo(rsp))); @@ -5880,7 +9245,7 @@ export class ObservableAppsV1Api { * @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 listNamespacedStatefulSet(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): Observable { + public listNamespacedStatefulSet(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?: ConfigurationOptions): Observable { return this.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5898,19 +9263,48 @@ export class ObservableAppsV1Api { * @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 listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicaSetForAllNamespacesWithHttpInfo(rsp))); @@ -5931,7 +9325,7 @@ export class ObservableAppsV1Api { * @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 listReplicaSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listReplicaSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5949,19 +9343,48 @@ export class ObservableAppsV1Api { * @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 listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStatefulSetForAllNamespacesWithHttpInfo(rsp))); @@ -5982,7 +9405,7 @@ export class ObservableAppsV1Api { * @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 listStatefulSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listStatefulSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -5997,19 +9420,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -6027,7 +9479,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedControllerRevision(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedControllerRevision(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6042,19 +9494,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetWithHttpInfo(rsp))); @@ -6072,7 +9553,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDaemonSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6087,19 +9568,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -6117,7 +9627,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDaemonSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6132,19 +9642,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentWithHttpInfo(rsp))); @@ -6162,7 +9701,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeployment(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeployment(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6177,19 +9716,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -6207,7 +9775,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeploymentScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6222,19 +9790,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -6252,7 +9849,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6267,19 +9864,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetWithHttpInfo(rsp))); @@ -6297,7 +9923,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicaSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6312,19 +9938,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -6342,7 +9997,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicaSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6357,19 +10012,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -6387,7 +10071,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicaSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6402,19 +10086,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetWithHttpInfo(rsp))); @@ -6432,7 +10145,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6447,19 +10160,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -6477,7 +10219,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6492,19 +10234,48 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -6522,7 +10293,7 @@ export class ObservableAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6532,19 +10303,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedControllerRevision(name, namespace, pretty, _options); + public readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedControllerRevision(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -6557,7 +10357,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6567,19 +10367,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedDaemonSet(name, namespace, pretty, _options); + public readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedDaemonSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetWithHttpInfo(rsp))); @@ -6592,7 +10421,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6602,19 +10431,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedDaemonSetStatus(name, namespace, pretty, _options); + public readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedDaemonSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -6627,7 +10485,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6637,19 +10495,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedDeployment(name, namespace, pretty, _options); + public readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedDeployment(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentWithHttpInfo(rsp))); @@ -6662,7 +10549,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6672,19 +10559,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedDeploymentScale(name, namespace, pretty, _options); + public readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedDeploymentScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -6697,7 +10613,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6707,19 +10623,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedDeploymentStatus(name, namespace, pretty, _options); + public readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedDeploymentStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -6732,7 +10677,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6742,19 +10687,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicaSet(name, namespace, pretty, _options); + public readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedReplicaSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetWithHttpInfo(rsp))); @@ -6767,7 +10741,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6777,19 +10751,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicaSetScale(name, namespace, pretty, _options); + public readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedReplicaSetScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -6802,7 +10805,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6812,19 +10815,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicaSetStatus(name, namespace, pretty, _options); + public readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedReplicaSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -6837,7 +10869,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6847,19 +10879,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedStatefulSet(name, namespace, pretty, _options); + public readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedStatefulSet(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetWithHttpInfo(rsp))); @@ -6872,7 +10933,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6882,19 +10943,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedStatefulSetScale(name, namespace, pretty, _options); + public readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedStatefulSetScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -6907,7 +10997,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6917,19 +11007,48 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedStatefulSetStatus(name, namespace, pretty, _options); + public readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedStatefulSetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -6942,7 +11061,7 @@ export class ObservableAppsV1Api { * @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 readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6956,19 +11075,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedControllerRevisionWithHttpInfo(rsp))); @@ -6985,7 +11133,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -6999,19 +11147,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetWithHttpInfo(rsp))); @@ -7028,7 +11205,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7042,19 +11219,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetStatusWithHttpInfo(rsp))); @@ -7071,7 +11277,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7085,19 +11291,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentWithHttpInfo(rsp))); @@ -7114,7 +11349,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7128,19 +11363,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentScaleWithHttpInfo(rsp))); @@ -7157,7 +11421,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7171,19 +11435,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentStatusWithHttpInfo(rsp))); @@ -7200,7 +11493,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7214,19 +11507,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetWithHttpInfo(rsp))); @@ -7243,7 +11565,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7257,19 +11579,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetScaleWithHttpInfo(rsp))); @@ -7286,7 +11637,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7300,19 +11651,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetStatusWithHttpInfo(rsp))); @@ -7329,7 +11709,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7343,19 +11723,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetWithHttpInfo(rsp))); @@ -7372,7 +11781,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7386,19 +11795,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetScaleWithHttpInfo(rsp))); @@ -7415,7 +11853,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7429,19 +11867,48 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetStatusWithHttpInfo(rsp))); @@ -7458,7 +11925,7 @@ export class ObservableAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7483,19 +11950,48 @@ export class ObservableAuthenticationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -7505,7 +12001,7 @@ export class ObservableAuthenticationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7535,19 +12031,48 @@ export class ObservableAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReviewWithHttpInfo(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReviewWithHttpInfo(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectReviewWithHttpInfo(rsp))); @@ -7562,7 +12087,7 @@ export class ObservableAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReview(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectReview(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7574,19 +12099,48 @@ export class ObservableAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenReviewWithHttpInfo(rsp))); @@ -7601,26 +12155,55 @@ export class ObservableAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -7630,7 +12213,7 @@ export class ObservableAuthenticationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7660,19 +12243,48 @@ export class ObservableAuthenticationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReviewWithHttpInfo(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReviewWithHttpInfo(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectReviewWithHttpInfo(rsp))); @@ -7687,26 +12299,55 @@ export class ObservableAuthenticationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReview(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectReview(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -7716,7 +12357,7 @@ export class ObservableAuthenticationV1beta1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7741,19 +12382,48 @@ export class ObservableAuthorizationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -7763,7 +12433,7 @@ export class ObservableAuthorizationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7794,19 +12464,48 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLocalSubjectAccessReviewWithHttpInfo(rsp))); @@ -7822,7 +12521,7 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7834,19 +12533,48 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectAccessReviewWithHttpInfo(rsp))); @@ -7861,7 +12589,7 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7873,19 +12601,48 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectRulesReviewWithHttpInfo(rsp))); @@ -7900,7 +12657,7 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7912,19 +12669,48 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSubjectAccessReviewWithHttpInfo(rsp))); @@ -7939,26 +12725,55 @@ export class ObservableAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -7968,7 +12783,7 @@ export class ObservableAuthorizationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -7993,19 +12808,48 @@ export class ObservableAutoscalingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -8015,7 +12859,7 @@ export class ObservableAutoscalingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8046,19 +12890,48 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8074,7 +12947,7 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8097,19 +12970,48 @@ export class ObservableAutoscalingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8135,7 +13037,7 @@ export class ObservableAutoscalingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(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): Observable { + public deleteCollectionNamespacedHorizontalPodAutoscaler(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8151,19 +13053,48 @@ export class ObservableAutoscalingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8182,26 +13113,55 @@ export class ObservableAutoscalingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -8211,7 +13171,7 @@ export class ObservableAutoscalingV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8229,19 +13189,48 @@ export class ObservableAutoscalingV1Api { * @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 listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); @@ -8262,7 +13251,7 @@ export class ObservableAutoscalingV1Api { * @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 listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8281,19 +13270,48 @@ export class ObservableAutoscalingV1Api { * @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 listNamespacedHorizontalPodAutoscalerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8315,7 +13333,7 @@ export class ObservableAutoscalingV1Api { * @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 listNamespacedHorizontalPodAutoscaler(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): Observable { + public listNamespacedHorizontalPodAutoscaler(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?: ConfigurationOptions): Observable { return this.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8330,19 +13348,48 @@ export class ObservableAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8360,7 +13407,7 @@ export class ObservableAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8375,19 +13422,48 @@ export class ObservableAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -8405,7 +13481,7 @@ export class ObservableAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8415,19 +13491,48 @@ export class ObservableAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8440,7 +13545,7 @@ export class ObservableAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8450,19 +13555,48 @@ export class ObservableAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -8475,7 +13609,7 @@ export class ObservableAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8489,19 +13623,48 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8518,7 +13681,7 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8532,19 +13695,48 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -8561,7 +13753,7 @@ export class ObservableAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8592,19 +13784,48 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8620,7 +13841,7 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8643,19 +13864,48 @@ export class ObservableAutoscalingV2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8681,7 +13931,7 @@ export class ObservableAutoscalingV2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(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): Observable { + public deleteCollectionNamespacedHorizontalPodAutoscaler(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8697,19 +13947,48 @@ export class ObservableAutoscalingV2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8728,26 +14007,55 @@ export class ObservableAutoscalingV2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -8757,7 +14065,7 @@ export class ObservableAutoscalingV2Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8775,19 +14083,48 @@ export class ObservableAutoscalingV2Api { * @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 listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); @@ -8808,7 +14145,7 @@ export class ObservableAutoscalingV2Api { * @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 listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8827,19 +14164,48 @@ export class ObservableAutoscalingV2Api { * @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 listNamespacedHorizontalPodAutoscalerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8861,7 +14227,7 @@ export class ObservableAutoscalingV2Api { * @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 listNamespacedHorizontalPodAutoscaler(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): Observable { + public listNamespacedHorizontalPodAutoscaler(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?: ConfigurationOptions): Observable { return this.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8876,19 +14242,48 @@ export class ObservableAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8906,7 +14301,7 @@ export class ObservableAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8921,19 +14316,48 @@ export class ObservableAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -8951,7 +14375,7 @@ export class ObservableAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8961,19 +14385,48 @@ export class ObservableAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -8986,7 +14439,7 @@ export class ObservableAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -8996,19 +14449,48 @@ export class ObservableAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -9021,7 +14503,7 @@ export class ObservableAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9035,19 +14517,48 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); @@ -9064,7 +14575,7 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9078,19 +14589,48 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); @@ -9107,7 +14647,7 @@ export class ObservableAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9132,19 +14672,48 @@ export class ObservableBatchApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -9154,7 +14723,7 @@ export class ObservableBatchApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9185,19 +14754,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJobWithHttpInfo(rsp))); @@ -9213,7 +14811,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9226,19 +14824,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedJobWithHttpInfo(rsp))); @@ -9254,7 +14881,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9277,19 +14904,48 @@ export class ObservableBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCronJobWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCronJobWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJobWithHttpInfo(rsp))); @@ -9315,7 +14971,7 @@ export class ObservableBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCronJob(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): Observable { + public deleteCollectionNamespacedCronJob(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9338,19 +14994,48 @@ export class ObservableBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedJobWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedJobWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedJobWithHttpInfo(rsp))); @@ -9376,7 +15061,7 @@ export class ObservableBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedJob(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): Observable { + public deleteCollectionNamespacedJob(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9392,19 +15077,48 @@ export class ObservableBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJobWithHttpInfo(rsp))); @@ -9423,7 +15137,7 @@ export class ObservableBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9439,19 +15153,48 @@ export class ObservableBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedJobWithHttpInfo(rsp))); @@ -9470,26 +15213,55 @@ export class ObservableBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -9499,7 +15271,7 @@ export class ObservableBatchV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9517,19 +15289,48 @@ export class ObservableBatchV1Api { * @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 listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespacesWithHttpInfo(rsp))); @@ -9550,7 +15351,7 @@ export class ObservableBatchV1Api { * @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 listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9568,19 +15369,48 @@ export class ObservableBatchV1Api { * @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 listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listJobForAllNamespacesWithHttpInfo(rsp))); @@ -9601,7 +15431,7 @@ export class ObservableBatchV1Api { * @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 listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9620,19 +15450,48 @@ export class ObservableBatchV1Api { * @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 listNamespacedCronJobWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedCronJobWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJobWithHttpInfo(rsp))); @@ -9654,7 +15513,7 @@ export class ObservableBatchV1Api { * @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 listNamespacedCronJob(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): Observable { + public listNamespacedCronJob(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?: ConfigurationOptions): Observable { return this.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9673,19 +15532,48 @@ export class ObservableBatchV1Api { * @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 listNamespacedJobWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedJobWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedJobWithHttpInfo(rsp))); @@ -9707,7 +15595,7 @@ export class ObservableBatchV1Api { * @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 listNamespacedJob(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): Observable { + public listNamespacedJob(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?: ConfigurationOptions): Observable { return this.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9722,19 +15610,48 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobWithHttpInfo(rsp))); @@ -9752,7 +15669,7 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9767,19 +15684,48 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -9797,7 +15743,7 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9812,19 +15758,48 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobWithHttpInfo(rsp))); @@ -9842,7 +15817,7 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9857,19 +15832,48 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobStatusWithHttpInfo(rsp))); @@ -9887,7 +15891,7 @@ export class ObservableBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9897,19 +15901,48 @@ export class ObservableBatchV1Api { * @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 readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedCronJob(name, namespace, pretty, _options); + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedCronJob(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobWithHttpInfo(rsp))); @@ -9922,7 +15955,7 @@ export class ObservableBatchV1Api { * @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 readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9932,19 +15965,48 @@ export class ObservableBatchV1Api { * @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 readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedCronJobStatus(name, namespace, pretty, _options); + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedCronJobStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -9957,7 +16019,7 @@ export class ObservableBatchV1Api { * @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 readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -9967,19 +16029,48 @@ export class ObservableBatchV1Api { * @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 readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedJob(name, namespace, pretty, _options); + public readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedJob(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobWithHttpInfo(rsp))); @@ -9992,7 +16083,7 @@ export class ObservableBatchV1Api { * @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 readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedJobWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10002,19 +16093,48 @@ export class ObservableBatchV1Api { * @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 readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedJobStatus(name, namespace, pretty, _options); + public readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedJobStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobStatusWithHttpInfo(rsp))); @@ -10027,7 +16147,7 @@ export class ObservableBatchV1Api { * @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 readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10041,19 +16161,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobWithHttpInfo(rsp))); @@ -10070,7 +16219,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10084,19 +16233,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatusWithHttpInfo(rsp))); @@ -10113,7 +16291,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10127,19 +16305,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobWithHttpInfo(rsp))); @@ -10156,7 +16363,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10170,19 +16377,48 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobStatusWithHttpInfo(rsp))); @@ -10199,7 +16435,7 @@ export class ObservableBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10224,19 +16460,48 @@ export class ObservableCertificatesApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -10246,7 +16511,7 @@ export class ObservableCertificatesApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10276,19 +16541,48 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCertificateSigningRequestWithHttpInfo(rsp))); @@ -10303,7 +16597,7 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10318,19 +16612,48 @@ export class ObservableCertificatesV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCertificateSigningRequestWithHttpInfo(rsp))); @@ -10348,7 +16671,7 @@ export class ObservableCertificatesV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10370,19 +16693,48 @@ export class ObservableCertificatesV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCertificateSigningRequestWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCertificateSigningRequestWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCertificateSigningRequestWithHttpInfo(rsp))); @@ -10407,26 +16759,55 @@ export class ObservableCertificatesV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCertificateSigningRequest(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): Observable { + public deleteCollectionCertificateSigningRequest(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?: ConfigurationOptions): Observable { return this.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -10436,7 +16817,7 @@ export class ObservableCertificatesV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10454,19 +16835,48 @@ export class ObservableCertificatesV1Api { * @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 listCertificateSigningRequestWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCertificateSigningRequestWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCertificateSigningRequestWithHttpInfo(rsp))); @@ -10487,7 +16897,7 @@ export class ObservableCertificatesV1Api { * @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 listCertificateSigningRequest(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCertificateSigningRequest(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10501,19 +16911,48 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestWithHttpInfo(rsp))); @@ -10530,7 +16969,7 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequest(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequest(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10544,19 +16983,48 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestApprovalWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestApprovalWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -10573,7 +17041,7 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestApproval(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequestApproval(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10587,19 +17055,48 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -10616,7 +17113,7 @@ export class ObservableCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequestStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10625,19 +17122,48 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCertificateSigningRequest(name, pretty, _options); + public readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readCertificateSigningRequest(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestWithHttpInfo(rsp))); @@ -10649,7 +17175,7 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequest(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCertificateSigningRequestWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10658,19 +17184,48 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCertificateSigningRequestApproval(name, pretty, _options); + public readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readCertificateSigningRequestApproval(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -10682,7 +17237,7 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10691,19 +17246,48 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCertificateSigningRequestStatus(name, pretty, _options); + public readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readCertificateSigningRequestStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -10715,7 +17299,7 @@ export class ObservableCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10728,19 +17312,48 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestWithHttpInfo(rsp))); @@ -10756,7 +17369,7 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10769,19 +17382,48 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestApprovalWithHttpInfo(rsp))); @@ -10797,7 +17439,7 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10810,19 +17452,48 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestStatusWithHttpInfo(rsp))); @@ -10838,7 +17509,7 @@ export class ObservableCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10868,19 +17539,48 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterTrustBundleWithHttpInfo(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterTrustBundleWithHttpInfo(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterTrustBundleWithHttpInfo(rsp))); @@ -10895,7 +17595,7 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterTrustBundle(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createClusterTrustBundle(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10910,19 +17610,48 @@ export class ObservableCertificatesV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterTrustBundleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterTrustBundleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterTrustBundleWithHttpInfo(rsp))); @@ -10940,7 +17669,7 @@ export class ObservableCertificatesV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterTrustBundle(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterTrustBundle(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -10962,19 +17691,48 @@ export class ObservableCertificatesV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterTrustBundleWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterTrustBundleWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterTrustBundleWithHttpInfo(rsp))); @@ -10999,26 +17757,55 @@ export class ObservableCertificatesV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -11028,7 +17815,7 @@ export class ObservableCertificatesV1alpha1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11046,19 +17833,48 @@ export class ObservableCertificatesV1alpha1Api { * @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 listClusterTrustBundleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterTrustBundleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterTrustBundleWithHttpInfo(rsp))); @@ -11079,7 +17895,7 @@ export class ObservableCertificatesV1alpha1Api { * @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 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): Observable { + public listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11093,19 +17909,48 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterTrustBundleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterTrustBundleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterTrustBundleWithHttpInfo(rsp))); @@ -11122,7 +17967,7 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11131,19 +17976,48 @@ export class ObservableCertificatesV1alpha1Api { * @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 readClusterTrustBundleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readClusterTrustBundle(name, pretty, _options); + public readClusterTrustBundleWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readClusterTrustBundle(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterTrustBundleWithHttpInfo(rsp))); @@ -11155,7 +18029,7 @@ export class ObservableCertificatesV1alpha1Api { * @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 readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Observable { + public readClusterTrustBundle(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readClusterTrustBundleWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11168,19 +18042,48 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterTrustBundleWithHttpInfo(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterTrustBundleWithHttpInfo(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterTrustBundleWithHttpInfo(rsp))); @@ -11196,7 +18099,7 @@ export class ObservableCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11221,19 +18124,48 @@ export class ObservableCoordinationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -11243,7 +18175,7 @@ export class ObservableCoordinationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11274,19 +18206,48 @@ export class ObservableCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseWithHttpInfo(rsp))); @@ -11302,7 +18263,7 @@ export class ObservableCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11325,19 +18286,48 @@ export class ObservableCoordinationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLeaseWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLeaseWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseWithHttpInfo(rsp))); @@ -11363,7 +18353,7 @@ export class ObservableCoordinationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLease(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): Observable { + public deleteCollectionNamespacedLease(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11379,19 +18369,48 @@ export class ObservableCoordinationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseWithHttpInfo(rsp))); @@ -11410,26 +18429,55 @@ export class ObservableCoordinationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -11439,7 +18487,7 @@ export class ObservableCoordinationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11457,19 +18505,48 @@ export class ObservableCoordinationV1Api { * @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 listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseForAllNamespacesWithHttpInfo(rsp))); @@ -11490,7 +18567,7 @@ export class ObservableCoordinationV1Api { * @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 listLeaseForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listLeaseForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11509,19 +18586,48 @@ export class ObservableCoordinationV1Api { * @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 listNamespacedLeaseWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLeaseWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseWithHttpInfo(rsp))); @@ -11543,7 +18649,7 @@ export class ObservableCoordinationV1Api { * @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 listNamespacedLease(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): Observable { + public listNamespacedLease(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?: ConfigurationOptions): Observable { return this.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11558,19 +18664,48 @@ export class ObservableCoordinationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseWithHttpInfo(rsp))); @@ -11588,7 +18723,7 @@ export class ObservableCoordinationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11598,19 +18733,48 @@ export class ObservableCoordinationV1Api { * @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 readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedLease(name, namespace, pretty, _options); + public readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedLease(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseWithHttpInfo(rsp))); @@ -11623,7 +18787,7 @@ export class ObservableCoordinationV1Api { * @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 readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11637,19 +18801,48 @@ export class ObservableCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseWithHttpInfo(rsp))); @@ -11666,7 +18859,7 @@ export class ObservableCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11697,19 +18890,48 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseCandidateWithHttpInfo(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLeaseCandidateWithHttpInfo(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -11725,7 +18947,7 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseCandidate(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedLeaseCandidate(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11748,19 +18970,48 @@ export class ObservableCoordinationV1alpha2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -11786,7 +19037,7 @@ export class ObservableCoordinationV1alpha2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11802,19 +19053,48 @@ export class ObservableCoordinationV1alpha2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -11833,26 +19113,55 @@ export class ObservableCoordinationV1alpha2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -11862,7 +19171,7 @@ export class ObservableCoordinationV1alpha2Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11880,19 +19189,48 @@ export class ObservableCoordinationV1alpha2Api { * @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 listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseCandidateForAllNamespacesWithHttpInfo(rsp))); @@ -11913,7 +19251,7 @@ export class ObservableCoordinationV1alpha2Api { * @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 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): Observable { + public listLeaseCandidateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11932,19 +19270,48 @@ export class ObservableCoordinationV1alpha2Api { * @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 listNamespacedLeaseCandidateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLeaseCandidateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -11966,7 +19333,7 @@ export class ObservableCoordinationV1alpha2Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -11981,19 +19348,48 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -12011,7 +19407,7 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseCandidate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedLeaseCandidate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12021,19 +19417,48 @@ export class ObservableCoordinationV1alpha2Api { * @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 readNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedLeaseCandidate(name, namespace, pretty, _options); + public readNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedLeaseCandidate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -12046,7 +19471,7 @@ export class ObservableCoordinationV1alpha2Api { * @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 readNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12060,19 +19485,48 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseCandidateWithHttpInfo(rsp))); @@ -12089,7 +19543,7 @@ export class ObservableCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseCandidate(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedLeaseCandidate(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12114,19 +19568,48 @@ export class ObservableCoreApi { /** * get available API versions */ - public getAPIVersionsWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIVersions(_options); + public getAPIVersionsWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIVersions(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); @@ -12136,7 +19619,7 @@ export class ObservableCoreApi { /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Observable { + public getAPIVersions(_options?: ConfigurationOptions): Observable { return this.getAPIVersionsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12164,19 +19647,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxy(name, namespace, path, _options); + public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithHttpInfo(rsp))); @@ -12189,7 +19701,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12200,19 +19712,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -12226,7 +19767,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12236,19 +19777,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxy(name, namespace, path, _options); + public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithHttpInfo(rsp))); @@ -12261,7 +19831,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12272,19 +19842,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -12298,7 +19897,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12307,19 +19906,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNodeProxy(name, path, _options); + public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectDeleteNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithHttpInfo(rsp))); @@ -12331,7 +19959,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12341,19 +19969,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectDeleteNodeProxyWithPath(name, path, path2, _options); + public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectDeleteNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithPathWithHttpInfo(rsp))); @@ -12366,7 +20023,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12380,19 +20037,48 @@ export class ObservableCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodAttachWithHttpInfo(rsp))); @@ -12409,7 +20095,7 @@ export class ObservableCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12424,19 +20110,48 @@ export class ObservableCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodExecWithHttpInfo(rsp))); @@ -12454,7 +20169,7 @@ export class ObservableCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12464,19 +20179,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedPodPortforward(name, namespace, ports, _options); + public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectGetNamespacedPodPortforward(name, namespace, ports, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodPortforwardWithHttpInfo(rsp))); @@ -12489,7 +20233,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12499,19 +20243,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxy(name, namespace, path, _options); + public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithHttpInfo(rsp))); @@ -12524,7 +20297,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12535,19 +20308,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -12561,7 +20363,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12571,19 +20373,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxy(name, namespace, path, _options); + public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithHttpInfo(rsp))); @@ -12596,7 +20427,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12607,19 +20438,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -12633,7 +20493,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12642,19 +20502,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNodeProxy(name, path, _options); + public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectGetNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithHttpInfo(rsp))); @@ -12666,7 +20555,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectGetNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12676,19 +20565,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectGetNodeProxyWithPath(name, path, path2, _options); + public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectGetNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithPathWithHttpInfo(rsp))); @@ -12701,7 +20619,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12711,19 +20629,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxy(name, namespace, path, _options); + public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithHttpInfo(rsp))); @@ -12736,7 +20683,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12747,19 +20694,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -12773,7 +20749,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12783,19 +20759,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxy(name, namespace, path, _options); + public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithHttpInfo(rsp))); @@ -12808,7 +20813,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12819,19 +20824,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -12845,7 +20879,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12854,19 +20888,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNodeProxy(name, path, _options); + public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectHeadNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithHttpInfo(rsp))); @@ -12878,7 +20941,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectHeadNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12888,19 +20951,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectHeadNodeProxyWithPath(name, path, path2, _options); + public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectHeadNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithPathWithHttpInfo(rsp))); @@ -12913,7 +21005,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12923,19 +21015,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxy(name, namespace, path, _options); + public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithHttpInfo(rsp))); @@ -12948,7 +21069,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12959,19 +21080,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -12985,7 +21135,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -12995,19 +21145,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxy(name, namespace, path, _options); + public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithHttpInfo(rsp))); @@ -13020,7 +21199,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13031,19 +21210,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -13057,7 +21265,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13066,19 +21274,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNodeProxy(name, path, _options); + public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectOptionsNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithHttpInfo(rsp))); @@ -13090,7 +21327,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectOptionsNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13100,19 +21337,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectOptionsNodeProxyWithPath(name, path, path2, _options); + public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectOptionsNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithPathWithHttpInfo(rsp))); @@ -13125,7 +21391,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13135,19 +21401,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxy(name, namespace, path, _options); + public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithHttpInfo(rsp))); @@ -13160,7 +21455,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13171,19 +21466,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -13197,7 +21521,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13207,19 +21531,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxy(name, namespace, path, _options); + public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithHttpInfo(rsp))); @@ -13232,7 +21585,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13243,19 +21596,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -13269,7 +21651,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13278,19 +21660,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNodeProxy(name, path, _options); + public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPatchNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithHttpInfo(rsp))); @@ -13302,7 +21713,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPatchNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13312,19 +21723,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPatchNodeProxyWithPath(name, path, path2, _options); + public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPatchNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithPathWithHttpInfo(rsp))); @@ -13337,7 +21777,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13351,19 +21791,48 @@ export class ObservableCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodAttachWithHttpInfo(rsp))); @@ -13380,7 +21849,7 @@ export class ObservableCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13395,19 +21864,48 @@ export class ObservableCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodExecWithHttpInfo(rsp))); @@ -13425,7 +21923,7 @@ export class ObservableCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13435,19 +21933,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedPodPortforward(name, namespace, ports, _options); + public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPostNamespacedPodPortforward(name, namespace, ports, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodPortforwardWithHttpInfo(rsp))); @@ -13460,7 +21987,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13470,19 +21997,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxy(name, namespace, path, _options); + public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithHttpInfo(rsp))); @@ -13495,7 +22051,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13506,19 +22062,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -13532,7 +22117,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13542,19 +22127,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxy(name, namespace, path, _options); + public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithHttpInfo(rsp))); @@ -13567,7 +22181,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13578,19 +22192,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -13604,7 +22247,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13613,19 +22256,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNodeProxy(name, path, _options); + public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPostNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithHttpInfo(rsp))); @@ -13637,7 +22309,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPostNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13647,19 +22319,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPostNodeProxyWithPath(name, path, path2, _options); + public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPostNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithPathWithHttpInfo(rsp))); @@ -13672,7 +22373,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13682,19 +22383,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxy(name, namespace, path, _options); + public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithHttpInfo(rsp))); @@ -13707,7 +22437,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13718,19 +22448,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithPathWithHttpInfo(rsp))); @@ -13744,7 +22503,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13754,19 +22513,48 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxy(name, namespace, path, _options); + public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxy(name, namespace, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithHttpInfo(rsp))); @@ -13779,7 +22567,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13790,19 +22578,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithPathWithHttpInfo(rsp))); @@ -13816,7 +22633,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13825,19 +22642,48 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNodeProxy(name, path, _options); + public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.connectPutNodeProxy(name, path, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithHttpInfo(rsp))); @@ -13849,7 +22695,7 @@ export class ObservableCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPutNodeProxy(name: string, path?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13859,19 +22705,48 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.connectPutNodeProxyWithPath(name, path, path2, _options); + public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.connectPutNodeProxyWithPath(name, path, path2, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithPathWithHttpInfo(rsp))); @@ -13884,7 +22759,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: ConfigurationOptions): Observable { return this.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13896,19 +22771,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespaceWithHttpInfo(rsp))); @@ -13923,7 +22827,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13936,19 +22840,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedBindingWithHttpInfo(rsp))); @@ -13964,7 +22897,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -13977,19 +22910,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedConfigMapWithHttpInfo(rsp))); @@ -14005,7 +22967,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14018,19 +22980,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointsWithHttpInfo(rsp))); @@ -14046,7 +23037,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14059,19 +23050,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); @@ -14087,7 +23107,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14100,19 +23120,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLimitRangeWithHttpInfo(rsp))); @@ -14128,7 +23177,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14141,19 +23190,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -14169,7 +23247,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14182,19 +23260,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodWithHttpInfo(rsp))); @@ -14210,7 +23317,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14224,19 +23331,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodBindingWithHttpInfo(rsp))); @@ -14253,7 +23389,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14267,19 +23403,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodEvictionWithHttpInfo(rsp))); @@ -14296,7 +23461,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14309,19 +23474,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodTemplateWithHttpInfo(rsp))); @@ -14337,7 +23531,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14350,19 +23544,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -14378,7 +23601,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14391,19 +23614,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -14419,7 +23671,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14432,19 +23684,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedSecretWithHttpInfo(rsp))); @@ -14460,7 +23741,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14473,19 +23754,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceWithHttpInfo(rsp))); @@ -14501,7 +23811,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14514,19 +23824,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountWithHttpInfo(rsp))); @@ -14542,7 +23881,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14556,19 +23895,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountTokenWithHttpInfo(rsp))); @@ -14585,7 +23953,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14597,19 +23965,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNode(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNode(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNodeWithHttpInfo(rsp))); @@ -14624,7 +24021,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14636,19 +24033,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPersistentVolumeWithHttpInfo(rsp))); @@ -14663,7 +24089,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14686,19 +24112,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedConfigMapWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedConfigMapWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedConfigMapWithHttpInfo(rsp))); @@ -14724,7 +24179,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedConfigMap(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): Observable { + public deleteCollectionNamespacedConfigMap(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14747,19 +24202,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointsWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpointsWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointsWithHttpInfo(rsp))); @@ -14785,7 +24269,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpoints(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): Observable { + public deleteCollectionNamespacedEndpoints(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14808,19 +24292,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEventWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEventWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); @@ -14846,7 +24359,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEvent(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): Observable { + public deleteCollectionNamespacedEvent(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14869,19 +24382,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLimitRangeWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLimitRangeWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLimitRangeWithHttpInfo(rsp))); @@ -14907,7 +24449,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLimitRange(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): Observable { + public deleteCollectionNamespacedLimitRange(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14930,19 +24472,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -14968,7 +24539,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPersistentVolumeClaim(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): Observable { + public deleteCollectionNamespacedPersistentVolumeClaim(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -14991,19 +24562,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodWithHttpInfo(rsp))); @@ -15029,7 +24629,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPod(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): Observable { + public deleteCollectionNamespacedPod(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15052,19 +24652,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodTemplateWithHttpInfo(rsp))); @@ -15090,7 +24719,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodTemplate(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): Observable { + public deleteCollectionNamespacedPodTemplate(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15113,19 +24742,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicationControllerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -15151,7 +24809,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicationController(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): Observable { + public deleteCollectionNamespacedReplicationController(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15174,19 +24832,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceQuotaWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -15212,7 +24899,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceQuota(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): Observable { + public deleteCollectionNamespacedResourceQuota(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15235,19 +24922,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedSecretWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedSecretWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedSecretWithHttpInfo(rsp))); @@ -15273,7 +24989,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedSecret(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): Observable { + public deleteCollectionNamespacedSecret(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15296,19 +25012,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedServiceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceWithHttpInfo(rsp))); @@ -15334,7 +25079,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedService(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): Observable { + public deleteCollectionNamespacedService(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15357,19 +25102,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceAccountWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedServiceAccountWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceAccountWithHttpInfo(rsp))); @@ -15395,7 +25169,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceAccount(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): Observable { + public deleteCollectionNamespacedServiceAccount(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15417,19 +25191,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNodeWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNodeWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNodeWithHttpInfo(rsp))); @@ -15454,7 +25257,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNode(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): Observable { + public deleteCollectionNode(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?: ConfigurationOptions): Observable { return this.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15476,19 +25279,48 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPersistentVolumeWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPersistentVolumeWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPersistentVolumeWithHttpInfo(rsp))); @@ -15513,7 +25345,7 @@ export class ObservableCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPersistentVolume(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): Observable { + public deleteCollectionPersistentVolume(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?: ConfigurationOptions): Observable { return this.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15528,19 +25360,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespaceWithHttpInfo(rsp))); @@ -15558,7 +25419,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15574,19 +25435,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedConfigMapWithHttpInfo(rsp))); @@ -15605,7 +25495,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15621,19 +25511,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointsWithHttpInfo(rsp))); @@ -15652,7 +25571,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15668,19 +25587,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); @@ -15699,7 +25647,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15715,19 +25663,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLimitRangeWithHttpInfo(rsp))); @@ -15746,7 +25723,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15762,19 +25739,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -15793,7 +25799,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15809,19 +25815,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodWithHttpInfo(rsp))); @@ -15840,7 +25875,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15856,19 +25891,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodTemplateWithHttpInfo(rsp))); @@ -15887,7 +25951,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15903,19 +25967,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -15934,7 +26027,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15950,19 +26043,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -15981,7 +26103,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -15997,19 +26119,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedSecretWithHttpInfo(rsp))); @@ -16028,7 +26179,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16044,19 +26195,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceWithHttpInfo(rsp))); @@ -16075,7 +26255,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16091,19 +26271,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceAccountWithHttpInfo(rsp))); @@ -16122,7 +26331,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16137,19 +26346,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNodeWithHttpInfo(rsp))); @@ -16167,7 +26405,7 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16182,19 +26420,48 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePersistentVolumeWithHttpInfo(rsp))); @@ -16212,26 +26479,55 @@ export class ObservableCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -16241,7 +26537,7 @@ export class ObservableCoreV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16259,19 +26555,48 @@ export class ObservableCoreV1Api { * @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 listComponentStatusWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listComponentStatusWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listComponentStatusWithHttpInfo(rsp))); @@ -16292,7 +26617,7 @@ export class ObservableCoreV1Api { * @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 listComponentStatus(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listComponentStatus(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16310,19 +26635,48 @@ export class ObservableCoreV1Api { * @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 listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listConfigMapForAllNamespacesWithHttpInfo(rsp))); @@ -16343,7 +26697,7 @@ export class ObservableCoreV1Api { * @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 listConfigMapForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listConfigMapForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16361,19 +26715,48 @@ export class ObservableCoreV1Api { * @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 listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointsForAllNamespacesWithHttpInfo(rsp))); @@ -16394,7 +26777,7 @@ export class ObservableCoreV1Api { * @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 listEndpointsForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEndpointsForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16412,19 +26795,48 @@ export class ObservableCoreV1Api { * @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 listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); @@ -16445,7 +26857,7 @@ export class ObservableCoreV1Api { * @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 listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16463,19 +26875,48 @@ export class ObservableCoreV1Api { * @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 listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLimitRangeForAllNamespacesWithHttpInfo(rsp))); @@ -16496,7 +26937,7 @@ export class ObservableCoreV1Api { * @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 listLimitRangeForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listLimitRangeForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16514,19 +26955,48 @@ export class ObservableCoreV1Api { * @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 listNamespaceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespaceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespaceWithHttpInfo(rsp))); @@ -16547,7 +27017,7 @@ export class ObservableCoreV1Api { * @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 listNamespace(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespace(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16566,19 +27036,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedConfigMapWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedConfigMapWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedConfigMapWithHttpInfo(rsp))); @@ -16600,7 +27099,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedConfigMap(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): Observable { + public listNamespacedConfigMap(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?: ConfigurationOptions): Observable { return this.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16619,19 +27118,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedEndpointsWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpointsWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointsWithHttpInfo(rsp))); @@ -16653,7 +27181,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedEndpoints(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): Observable { + public listNamespacedEndpoints(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?: ConfigurationOptions): Observable { return this.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16672,19 +27200,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedEventWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEventWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); @@ -16706,7 +27263,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedEvent(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): Observable { + public listNamespacedEvent(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?: ConfigurationOptions): Observable { return this.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16725,19 +27282,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedLimitRangeWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLimitRangeWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLimitRangeWithHttpInfo(rsp))); @@ -16759,7 +27345,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedLimitRange(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): Observable { + public listNamespacedLimitRange(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?: ConfigurationOptions): Observable { return this.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16778,19 +27364,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedPersistentVolumeClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPersistentVolumeClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -16812,7 +27427,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedPersistentVolumeClaim(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): Observable { + public listNamespacedPersistentVolumeClaim(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?: ConfigurationOptions): Observable { return this.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16831,19 +27446,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedPodWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodWithHttpInfo(rsp))); @@ -16865,7 +27509,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedPod(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): Observable { + public listNamespacedPod(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?: ConfigurationOptions): Observable { return this.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16884,19 +27528,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedPodTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodTemplateWithHttpInfo(rsp))); @@ -16918,7 +27591,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedPodTemplate(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): Observable { + public listNamespacedPodTemplate(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?: ConfigurationOptions): Observable { return this.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16937,19 +27610,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedReplicationControllerWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicationControllerWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -16971,7 +27673,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedReplicationController(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): Observable { + public listNamespacedReplicationController(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?: ConfigurationOptions): Observable { return this.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -16990,19 +27692,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedResourceQuotaWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceQuotaWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -17024,7 +27755,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedResourceQuota(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): Observable { + public listNamespacedResourceQuota(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?: ConfigurationOptions): Observable { return this.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17043,19 +27774,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedSecretWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedSecretWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedSecretWithHttpInfo(rsp))); @@ -17077,7 +27837,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedSecret(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): Observable { + public listNamespacedSecret(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?: ConfigurationOptions): Observable { return this.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17096,19 +27856,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedServiceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedServiceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceWithHttpInfo(rsp))); @@ -17130,7 +27919,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedService(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): Observable { + public listNamespacedService(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?: ConfigurationOptions): Observable { return this.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17149,19 +27938,48 @@ export class ObservableCoreV1Api { * @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 listNamespacedServiceAccountWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedServiceAccountWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceAccountWithHttpInfo(rsp))); @@ -17183,7 +28001,7 @@ export class ObservableCoreV1Api { * @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 listNamespacedServiceAccount(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): Observable { + public listNamespacedServiceAccount(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?: ConfigurationOptions): Observable { return this.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17201,19 +28019,48 @@ export class ObservableCoreV1Api { * @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 listNodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNodeWithHttpInfo(rsp))); @@ -17234,7 +28081,7 @@ export class ObservableCoreV1Api { * @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 listNode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17252,19 +28099,48 @@ export class ObservableCoreV1Api { * @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 listPersistentVolumeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolumeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeWithHttpInfo(rsp))); @@ -17285,7 +28161,7 @@ export class ObservableCoreV1Api { * @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 listPersistentVolume(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPersistentVolume(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17303,19 +28179,48 @@ export class ObservableCoreV1Api { * @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 listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(rsp))); @@ -17336,7 +28241,7 @@ export class ObservableCoreV1Api { * @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 listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17354,19 +28259,48 @@ export class ObservableCoreV1Api { * @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 listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodForAllNamespacesWithHttpInfo(rsp))); @@ -17387,7 +28321,7 @@ export class ObservableCoreV1Api { * @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 listPodForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17405,19 +28339,48 @@ export class ObservableCoreV1Api { * @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 listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -17438,7 +28401,7 @@ export class ObservableCoreV1Api { * @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 listPodTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17456,19 +28419,48 @@ export class ObservableCoreV1Api { * @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 listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicationControllerForAllNamespacesWithHttpInfo(rsp))); @@ -17489,7 +28481,7 @@ export class ObservableCoreV1Api { * @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 listReplicationControllerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listReplicationControllerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17507,19 +28499,48 @@ export class ObservableCoreV1Api { * @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 listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceQuotaForAllNamespacesWithHttpInfo(rsp))); @@ -17540,7 +28561,7 @@ export class ObservableCoreV1Api { * @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 listResourceQuotaForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listResourceQuotaForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17558,19 +28579,48 @@ export class ObservableCoreV1Api { * @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 listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listSecretForAllNamespacesWithHttpInfo(rsp))); @@ -17591,7 +28641,7 @@ export class ObservableCoreV1Api { * @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 listSecretForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listSecretForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17609,19 +28659,48 @@ export class ObservableCoreV1Api { * @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 listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceAccountForAllNamespacesWithHttpInfo(rsp))); @@ -17642,7 +28721,7 @@ export class ObservableCoreV1Api { * @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 listServiceAccountForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listServiceAccountForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17660,19 +28739,48 @@ export class ObservableCoreV1Api { * @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 listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceForAllNamespacesWithHttpInfo(rsp))); @@ -17693,7 +28801,7 @@ export class ObservableCoreV1Api { * @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 listServiceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listServiceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17707,19 +28815,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespaceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceWithHttpInfo(rsp))); @@ -17736,7 +28873,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespace(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespace(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17750,19 +28887,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceStatusWithHttpInfo(rsp))); @@ -17779,7 +28945,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespaceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17794,19 +28960,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedConfigMapWithHttpInfo(rsp))); @@ -17824,7 +29019,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17839,19 +29034,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointsWithHttpInfo(rsp))); @@ -17869,7 +29093,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17884,19 +29108,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); @@ -17914,7 +29167,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17929,19 +29182,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLimitRangeWithHttpInfo(rsp))); @@ -17959,7 +29241,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -17974,19 +29256,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -18004,7 +29315,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18019,19 +29330,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -18049,7 +29389,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18064,19 +29404,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodWithHttpInfo(rsp))); @@ -18094,7 +29463,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18109,19 +29478,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -18139,7 +29537,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18154,19 +29552,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodResizeWithHttpInfo(rsp))); @@ -18184,7 +29611,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodResize(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodResize(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18199,19 +29626,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodStatusWithHttpInfo(rsp))); @@ -18229,7 +29685,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18244,19 +29700,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodTemplateWithHttpInfo(rsp))); @@ -18274,7 +29759,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18289,19 +29774,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -18319,7 +29833,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18334,19 +29848,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -18364,7 +29907,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18379,19 +29922,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -18409,7 +29981,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18424,19 +29996,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -18454,7 +30055,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18469,19 +30070,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -18499,7 +30129,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18514,19 +30144,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedSecretWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedSecretWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedSecretWithHttpInfo(rsp))); @@ -18544,7 +30203,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18559,19 +30218,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceWithHttpInfo(rsp))); @@ -18589,7 +30277,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18604,19 +30292,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceAccountWithHttpInfo(rsp))); @@ -18634,7 +30351,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceAccount(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedServiceAccount(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18649,19 +30366,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceStatusWithHttpInfo(rsp))); @@ -18679,7 +30425,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18693,19 +30439,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeWithHttpInfo(rsp))); @@ -18722,7 +30497,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18736,19 +30511,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeStatusWithHttpInfo(rsp))); @@ -18765,7 +30569,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNodeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18779,19 +30583,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeWithHttpInfo(rsp))); @@ -18808,7 +30641,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolume(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchPersistentVolume(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18822,19 +30655,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeStatusWithHttpInfo(rsp))); @@ -18851,7 +30713,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchPersistentVolumeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18860,19 +30722,48 @@ export class ObservableCoreV1Api { * @param name name of the ComponentStatus * @param [pretty] If \'true\', 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 readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readComponentStatus(name, pretty, _options); + public readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readComponentStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readComponentStatusWithHttpInfo(rsp))); @@ -18884,7 +30775,7 @@ export class ObservableCoreV1Api { * @param name name of the ComponentStatus * @param [pretty] If \'true\', 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 readComponentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readComponentStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readComponentStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18893,19 +30784,48 @@ export class ObservableCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespace(name, pretty, _options); + public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespace(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceWithHttpInfo(rsp))); @@ -18917,7 +30837,7 @@ export class ObservableCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespace(name: string, pretty?: string, _options?: Configuration): Observable { + public readNamespace(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespaceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18926,19 +30846,48 @@ export class ObservableCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespaceStatus(name, pretty, _options); + public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespaceStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceStatusWithHttpInfo(rsp))); @@ -18950,7 +30899,7 @@ export class ObservableCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readNamespaceStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespaceStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18960,19 +30909,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedConfigMap(name, namespace, pretty, _options); + public readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedConfigMap(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedConfigMapWithHttpInfo(rsp))); @@ -18985,7 +30963,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -18995,19 +30973,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedEndpoints(name, namespace, pretty, _options); + public readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedEndpoints(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointsWithHttpInfo(rsp))); @@ -19020,7 +31027,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19030,19 +31037,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _options); + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); @@ -19055,7 +31091,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19065,19 +31101,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedLimitRange(name, namespace, pretty, _options); + public readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedLimitRange(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLimitRangeWithHttpInfo(rsp))); @@ -19090,7 +31155,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19100,19 +31165,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -19125,7 +31219,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19135,19 +31229,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -19160,7 +31283,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19170,19 +31293,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPod(name, namespace, pretty, _options); + public readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPod(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodWithHttpInfo(rsp))); @@ -19195,7 +31347,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19205,19 +31357,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _options); + public readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -19230,7 +31411,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19249,19 +31430,48 @@ export class ObservableCoreV1Api { * @param [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". * @param [timestamps] If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _options); + public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodLogWithHttpInfo(rsp))); @@ -19283,7 +31493,7 @@ export class ObservableCoreV1Api { * @param [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". * @param [timestamps] If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: Configuration): Observable { + public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19293,19 +31503,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodResizeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodResize(name, namespace, pretty, _options); + public readNamespacedPodResizeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPodResize(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodResizeWithHttpInfo(rsp))); @@ -19318,7 +31557,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodResize(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodResize(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodResizeWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19328,19 +31567,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodStatus(name, namespace, pretty, _options); + public readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedPodStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodStatusWithHttpInfo(rsp))); @@ -19353,7 +31621,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19363,19 +31631,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodTemplate(name, namespace, pretty, _options); + public readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPodTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodTemplateWithHttpInfo(rsp))); @@ -19388,7 +31685,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19398,19 +31695,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicationController(name, namespace, pretty, _options); + public readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedReplicationController(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -19423,7 +31749,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19433,19 +31759,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerScale(name, namespace, pretty, _options); + public readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerScale(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -19458,7 +31813,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19468,19 +31823,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerStatus(name, namespace, pretty, _options); + public readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -19493,7 +31877,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19503,19 +31887,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceQuota(name, namespace, pretty, _options); + public readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceQuota(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -19528,7 +31941,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19538,19 +31951,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceQuotaStatus(name, namespace, pretty, _options); + public readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceQuotaStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -19563,7 +32005,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19573,19 +32015,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedSecret(name, namespace, pretty, _options); + public readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedSecret(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedSecretWithHttpInfo(rsp))); @@ -19598,7 +32069,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedSecretWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19608,19 +32079,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedService(name, namespace, pretty, _options); + public readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedService(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceWithHttpInfo(rsp))); @@ -19633,7 +32133,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedServiceWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19643,19 +32143,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedServiceAccount(name, namespace, pretty, _options); + public readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedServiceAccount(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceAccountWithHttpInfo(rsp))); @@ -19668,7 +32197,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19678,19 +32207,48 @@ export class ObservableCoreV1Api { * @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 readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedServiceStatus(name, namespace, pretty, _options); + public readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedServiceStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceStatusWithHttpInfo(rsp))); @@ -19703,7 +32261,7 @@ export class ObservableCoreV1Api { * @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 readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19712,19 +32270,48 @@ export class ObservableCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNode(name, pretty, _options); + public readNodeWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNode(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeWithHttpInfo(rsp))); @@ -19736,7 +32323,7 @@ export class ObservableCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNode(name: string, pretty?: string, _options?: Configuration): Observable { + public readNode(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNodeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19745,19 +32332,48 @@ export class ObservableCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNodeStatus(name, pretty, _options); + public readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNodeStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeStatusWithHttpInfo(rsp))); @@ -19769,7 +32385,7 @@ export class ObservableCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readNodeStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNodeStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19778,19 +32394,48 @@ export class ObservableCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readPersistentVolume(name, pretty, _options); + public readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readPersistentVolume(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeWithHttpInfo(rsp))); @@ -19802,7 +32447,7 @@ export class ObservableCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Observable { + public readPersistentVolume(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readPersistentVolumeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19811,19 +32456,48 @@ export class ObservableCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readPersistentVolumeStatus(name, pretty, _options); + public readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readPersistentVolumeStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeStatusWithHttpInfo(rsp))); @@ -19835,7 +32509,7 @@ export class ObservableCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readPersistentVolumeStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readPersistentVolumeStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19848,19 +32522,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceWithHttpInfo(rsp))); @@ -19876,7 +32579,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19889,19 +32592,48 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceFinalizeWithHttpInfo(rsp))); @@ -19917,7 +32649,7 @@ export class ObservableCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Observable { + public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19930,19 +32662,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceStatusWithHttpInfo(rsp))); @@ -19958,7 +32719,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -19972,19 +32733,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedConfigMapWithHttpInfo(rsp))); @@ -20001,7 +32791,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20015,19 +32805,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointsWithHttpInfo(rsp))); @@ -20044,7 +32863,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20058,19 +32877,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); @@ -20087,7 +32935,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20101,19 +32949,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLimitRangeWithHttpInfo(rsp))); @@ -20130,7 +33007,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20144,19 +33021,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); @@ -20173,7 +33079,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20187,19 +33093,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); @@ -20216,7 +33151,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20230,19 +33165,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodWithHttpInfo(rsp))); @@ -20259,7 +33223,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20273,19 +33237,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); @@ -20302,7 +33295,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20316,19 +33309,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodResizeWithHttpInfo(rsp))); @@ -20345,7 +33367,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodResize(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodResize(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20359,19 +33381,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodStatusWithHttpInfo(rsp))); @@ -20388,7 +33439,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20402,19 +33453,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodTemplateWithHttpInfo(rsp))); @@ -20431,7 +33511,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20445,19 +33525,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerWithHttpInfo(rsp))); @@ -20474,7 +33583,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20488,19 +33597,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerScaleWithHttpInfo(rsp))); @@ -20517,7 +33655,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20531,19 +33669,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerStatusWithHttpInfo(rsp))); @@ -20560,7 +33727,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20574,19 +33741,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaWithHttpInfo(rsp))); @@ -20603,7 +33799,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20617,19 +33813,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaStatusWithHttpInfo(rsp))); @@ -20646,7 +33871,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20660,19 +33885,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedSecretWithHttpInfo(rsp))); @@ -20689,7 +33943,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20703,19 +33957,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceWithHttpInfo(rsp))); @@ -20732,7 +34015,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20746,19 +34029,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceAccountWithHttpInfo(rsp))); @@ -20775,7 +34087,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20789,19 +34101,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceStatusWithHttpInfo(rsp))); @@ -20818,7 +34159,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20831,19 +34172,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeWithHttpInfo(rsp))); @@ -20859,7 +34229,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20872,19 +34242,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeStatusWithHttpInfo(rsp))); @@ -20900,7 +34299,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20913,19 +34312,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeWithHttpInfo(rsp))); @@ -20941,7 +34369,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -20954,19 +34382,48 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeStatusWithHttpInfo(rsp))); @@ -20982,7 +34439,7 @@ export class ObservableCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21015,19 +34472,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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. (optional) */ - public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterCustomObjectWithHttpInfo(rsp))); @@ -21045,7 +34531,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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. (optional) */ - public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21061,19 +34547,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21092,7 +34607,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21108,19 +34623,48 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterCustomObjectWithHttpInfo(rsp))); @@ -21139,7 +34683,7 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteClusterCustomObject(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterCustomObject(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21156,19 +34700,48 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterCustomObjectWithHttpInfo(rsp))); @@ -21188,7 +34761,7 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteCollectionClusterCustomObject(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionClusterCustomObject(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21207,19 +34780,48 @@ export class ObservableCustomObjectsApi { * @param [fieldSelector] A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param [body] */ - public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _options); + public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21241,7 +34843,7 @@ export class ObservableCustomObjectsApi { * @param [fieldSelector] A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param [body] */ - public deleteCollectionNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21258,19 +34860,48 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21290,7 +34921,7 @@ export class ObservableCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21299,19 +34930,48 @@ export class ObservableCustomObjectsApi { * @param group The custom resource\'s group name * @param version The custom resource\'s version */ - public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(group, version, _options); + public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(group, version, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -21323,7 +34983,7 @@ export class ObservableCustomObjectsApi { * @param group The custom resource\'s group name * @param version The custom resource\'s version */ - public getAPIResources(group: string, version: string, _options?: Configuration): Observable { + public getAPIResources(group: string, version: string, _options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(group, version, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21334,19 +34994,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getClusterCustomObject(group, version, plural, name, _options); + public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getClusterCustomObject(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectWithHttpInfo(rsp))); @@ -21360,7 +35049,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getClusterCustomObjectWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21371,19 +35060,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getClusterCustomObjectScale(group, version, plural, name, _options); + public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getClusterCustomObjectScale(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -21397,7 +35115,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21408,19 +35126,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getClusterCustomObjectStatus(group, version, plural, name, _options); + public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getClusterCustomObjectStatus(group, version, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -21434,7 +35181,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21446,19 +35193,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getNamespacedCustomObject(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getNamespacedCustomObject(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21473,7 +35249,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21485,19 +35261,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -21512,7 +35317,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21524,19 +35329,48 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -21551,7 +35385,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: ConfigurationOptions): Observable { return this.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21571,19 +35405,48 @@ export class ObservableCustomObjectsApi { * @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. */ - public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterCustomObjectWithHttpInfo(rsp))); @@ -21606,7 +35469,7 @@ export class ObservableCustomObjectsApi { * @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. */ - public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21626,19 +35489,48 @@ export class ObservableCustomObjectsApi { * @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. */ - public listCustomObjectForAllNamespacesWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCustomObjectForAllNamespaces(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listCustomObjectForAllNamespacesWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listCustomObjectForAllNamespaces(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomObjectForAllNamespacesWithHttpInfo(rsp))); @@ -21661,7 +35553,7 @@ export class ObservableCustomObjectsApi { * @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. */ - public listCustomObjectForAllNamespaces(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCustomObjectForAllNamespaces(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21682,19 +35574,48 @@ export class ObservableCustomObjectsApi { * @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. */ - public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21718,7 +35639,7 @@ export class ObservableCustomObjectsApi { * @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. */ - public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21734,19 +35655,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectWithHttpInfo(rsp))); @@ -21765,7 +35715,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21781,19 +35731,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -21812,7 +35791,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21828,19 +35807,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -21859,7 +35867,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21876,19 +35884,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectWithHttpInfo(rsp))); @@ -21908,7 +35945,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21925,19 +35962,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -21957,7 +36023,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -21974,19 +36040,48 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -22006,7 +36101,7 @@ export class ObservableCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22021,19 +36116,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectWithHttpInfo(rsp))); @@ -22051,7 +36175,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22066,19 +36190,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectScaleWithHttpInfo(rsp))); @@ -22096,7 +36249,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22111,19 +36264,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectStatusWithHttpInfo(rsp))); @@ -22141,7 +36323,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22157,19 +36339,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectWithHttpInfo(rsp))); @@ -22188,7 +36399,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22204,19 +36415,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectScaleWithHttpInfo(rsp))); @@ -22235,7 +36475,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22251,19 +36491,48 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectStatusWithHttpInfo(rsp))); @@ -22282,7 +36551,7 @@ export class ObservableCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22307,19 +36576,48 @@ export class ObservableDiscoveryApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -22329,7 +36627,7 @@ export class ObservableDiscoveryApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22360,19 +36658,48 @@ export class ObservableDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22388,7 +36715,7 @@ export class ObservableDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22411,19 +36738,48 @@ export class ObservableDiscoveryV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointSliceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22449,7 +36805,7 @@ export class ObservableDiscoveryV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointSlice(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): Observable { + public deleteCollectionNamespacedEndpointSlice(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22465,19 +36821,48 @@ export class ObservableDiscoveryV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22496,26 +36881,55 @@ export class ObservableDiscoveryV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -22525,7 +36939,7 @@ export class ObservableDiscoveryV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22543,19 +36957,48 @@ export class ObservableDiscoveryV1Api { * @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 listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespacesWithHttpInfo(rsp))); @@ -22576,7 +37019,7 @@ export class ObservableDiscoveryV1Api { * @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 listEndpointSliceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEndpointSliceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22595,19 +37038,48 @@ export class ObservableDiscoveryV1Api { * @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 listNamespacedEndpointSliceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpointSliceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22629,7 +37101,7 @@ export class ObservableDiscoveryV1Api { * @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 listNamespacedEndpointSlice(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): Observable { + public listNamespacedEndpointSlice(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?: ConfigurationOptions): Observable { return this.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22644,19 +37116,48 @@ export class ObservableDiscoveryV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22674,7 +37175,7 @@ export class ObservableDiscoveryV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointSlice(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEndpointSlice(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22684,19 +37185,48 @@ export class ObservableDiscoveryV1Api { * @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 readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedEndpointSlice(name, namespace, pretty, _options); + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedEndpointSlice(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22709,7 +37239,7 @@ export class ObservableDiscoveryV1Api { * @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 readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22723,19 +37253,48 @@ export class ObservableDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSliceWithHttpInfo(rsp))); @@ -22752,7 +37311,7 @@ export class ObservableDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22777,19 +37336,48 @@ export class ObservableEventsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -22799,7 +37387,7 @@ export class ObservableEventsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22830,19 +37418,48 @@ export class ObservableEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); @@ -22858,7 +37475,7 @@ export class ObservableEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22881,19 +37498,48 @@ export class ObservableEventsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEventWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEventWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); @@ -22919,7 +37565,7 @@ export class ObservableEventsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEvent(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): Observable { + public deleteCollectionNamespacedEvent(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -22935,19 +37581,48 @@ export class ObservableEventsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); @@ -22966,26 +37641,55 @@ export class ObservableEventsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -22995,7 +37699,7 @@ export class ObservableEventsV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23013,19 +37717,48 @@ export class ObservableEventsV1Api { * @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 listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); @@ -23046,7 +37779,7 @@ export class ObservableEventsV1Api { * @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 listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23065,19 +37798,48 @@ export class ObservableEventsV1Api { * @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 listNamespacedEventWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEventWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); @@ -23099,7 +37861,7 @@ export class ObservableEventsV1Api { * @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 listNamespacedEvent(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): Observable { + public listNamespacedEvent(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?: ConfigurationOptions): Observable { return this.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23114,19 +37876,48 @@ export class ObservableEventsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); @@ -23144,7 +37935,7 @@ export class ObservableEventsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23154,19 +37945,48 @@ export class ObservableEventsV1Api { * @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 readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _options); + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); @@ -23179,7 +37999,7 @@ export class ObservableEventsV1Api { * @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 readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23193,19 +38013,48 @@ export class ObservableEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); @@ -23222,7 +38071,7 @@ export class ObservableEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23247,19 +38096,48 @@ export class ObservableFlowcontrolApiserverApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -23269,7 +38147,7 @@ export class ObservableFlowcontrolApiserverApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23299,19 +38177,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createFlowSchemaWithHttpInfo(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createFlowSchemaWithHttpInfo(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createFlowSchemaWithHttpInfo(rsp))); @@ -23326,7 +38233,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createFlowSchema(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createFlowSchema(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23338,19 +38245,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityLevelConfigurationWithHttpInfo(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityLevelConfigurationWithHttpInfo(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23365,7 +38301,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityLevelConfiguration(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createPriorityLevelConfiguration(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23387,19 +38323,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionFlowSchemaWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionFlowSchemaWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionFlowSchemaWithHttpInfo(rsp))); @@ -23424,7 +38389,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionFlowSchema(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): Observable { + public deleteCollectionFlowSchema(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?: ConfigurationOptions): Observable { return this.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23446,19 +38411,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityLevelConfigurationWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23483,7 +38477,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityLevelConfiguration(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): Observable { + public deleteCollectionPriorityLevelConfiguration(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?: ConfigurationOptions): Observable { return this.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23498,19 +38492,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteFlowSchemaWithHttpInfo(rsp))); @@ -23528,7 +38551,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23543,19 +38566,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23573,26 +38625,55 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -23602,7 +38683,7 @@ export class ObservableFlowcontrolApiserverV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23620,19 +38701,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @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 listFlowSchemaWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listFlowSchemaWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listFlowSchemaWithHttpInfo(rsp))); @@ -23653,7 +38763,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @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 listFlowSchema(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listFlowSchema(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23671,19 +38781,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @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 listPriorityLevelConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityLevelConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23704,7 +38843,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @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 listPriorityLevelConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPriorityLevelConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23718,19 +38857,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchemaWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaWithHttpInfo(rsp))); @@ -23747,7 +38915,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchema(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchFlowSchema(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23761,19 +38929,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchemaStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaStatusWithHttpInfo(rsp))); @@ -23790,7 +38987,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchFlowSchemaStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23804,19 +39001,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23833,7 +39059,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchPriorityLevelConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23847,19 +39073,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfigurationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -23876,7 +39131,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchPriorityLevelConfigurationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23885,19 +39140,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readFlowSchema(name, pretty, _options); + public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readFlowSchema(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaWithHttpInfo(rsp))); @@ -23909,7 +39193,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchema(name: string, pretty?: string, _options?: Configuration): Observable { + public readFlowSchema(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readFlowSchemaWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23918,19 +39202,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readFlowSchemaStatus(name, pretty, _options); + public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readFlowSchemaStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaStatusWithHttpInfo(rsp))); @@ -23942,7 +39255,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readFlowSchemaStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readFlowSchemaStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23951,19 +39264,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readPriorityLevelConfiguration(name, pretty, _options); + public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readPriorityLevelConfiguration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationWithHttpInfo(rsp))); @@ -23975,7 +39317,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readPriorityLevelConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -23984,19 +39326,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readPriorityLevelConfigurationStatus(name, pretty, _options); + public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readPriorityLevelConfigurationStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -24008,7 +39379,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24021,19 +39392,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchemaWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaWithHttpInfo(rsp))); @@ -24049,7 +39449,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchema(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceFlowSchema(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24062,19 +39462,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaStatusWithHttpInfo(rsp))); @@ -24090,7 +39519,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaStatus(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceFlowSchemaStatus(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24103,19 +39532,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationWithHttpInfo(rsp))); @@ -24131,7 +39589,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfiguration(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replacePriorityLevelConfiguration(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24144,19 +39602,48 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationStatusWithHttpInfo(rsp))); @@ -24172,7 +39659,7 @@ export class ObservableFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationStatus(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replacePriorityLevelConfigurationStatus(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24197,19 +39684,48 @@ export class ObservableInternalApiserverApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -24219,7 +39735,7 @@ export class ObservableInternalApiserverApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24249,19 +39765,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersionWithHttpInfo(rsp))); @@ -24276,7 +39821,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24298,19 +39843,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersionWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersionWithHttpInfo(rsp))); @@ -24335,7 +39909,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersion(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): Observable { + public deleteCollectionStorageVersion(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?: ConfigurationOptions): Observable { return this.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24350,19 +39924,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersionWithHttpInfo(rsp))); @@ -24380,26 +39983,55 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersion(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteStorageVersion(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -24409,7 +40041,7 @@ export class ObservableInternalApiserverV1alpha1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24427,19 +40059,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @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 listStorageVersionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersionWithHttpInfo(rsp))); @@ -24460,7 +40121,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @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 listStorageVersion(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listStorageVersion(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24474,19 +40135,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionWithHttpInfo(rsp))); @@ -24503,7 +40193,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersion(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersion(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24517,19 +40207,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionStatusWithHttpInfo(rsp))); @@ -24546,7 +40265,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24555,19 +40274,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readStorageVersion(name, pretty, _options); + public readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readStorageVersion(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionWithHttpInfo(rsp))); @@ -24579,7 +40327,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersion(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersion(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readStorageVersionWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24588,19 +40336,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readStorageVersionStatus(name, pretty, _options); + public readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readStorageVersionStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionStatusWithHttpInfo(rsp))); @@ -24612,7 +40389,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersionStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readStorageVersionStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24625,19 +40402,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionWithHttpInfo(rsp))); @@ -24653,7 +40459,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24666,19 +40472,48 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionStatusWithHttpInfo(rsp))); @@ -24694,7 +40529,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24719,19 +40554,48 @@ export class ObservableLogsApi { /** * @param logpath path to the log */ - public logFileHandlerWithHttpInfo(logpath: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.logFileHandler(logpath, _options); + public logFileHandlerWithHttpInfo(logpath: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.logFileHandler(logpath, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileHandlerWithHttpInfo(rsp))); @@ -24741,25 +40605,54 @@ export class ObservableLogsApi { /** * @param logpath path to the log */ - public logFileHandler(logpath: string, _options?: Configuration): Observable { + public logFileHandler(logpath: string, _options?: ConfigurationOptions): Observable { return this.logFileHandlerWithHttpInfo(logpath, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** */ - public logFileListHandlerWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.logFileListHandler(_options); + public logFileListHandlerWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.logFileListHandler(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileListHandlerWithHttpInfo(rsp))); @@ -24768,7 +40661,7 @@ export class ObservableLogsApi { /** */ - public logFileListHandler(_options?: Configuration): Observable { + public logFileListHandler(_options?: ConfigurationOptions): Observable { return this.logFileListHandlerWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24793,19 +40686,48 @@ export class ObservableNetworkingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -24815,7 +40737,7 @@ export class ObservableNetworkingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24845,19 +40767,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIngressClassWithHttpInfo(rsp))); @@ -24872,7 +40823,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24885,19 +40836,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedIngressWithHttpInfo(rsp))); @@ -24913,7 +40893,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24926,19 +40906,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -24954,7 +40963,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedNetworkPolicy(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedNetworkPolicy(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -24976,19 +40985,48 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionIngressClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionIngressClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIngressClassWithHttpInfo(rsp))); @@ -25013,7 +41051,7 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25036,19 +41074,48 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedIngressWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedIngressWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedIngressWithHttpInfo(rsp))); @@ -25074,7 +41141,7 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25097,19 +41164,48 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -25135,7 +41231,7 @@ export class ObservableNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25150,19 +41246,48 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIngressClassWithHttpInfo(rsp))); @@ -25180,7 +41305,7 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25196,19 +41321,48 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedIngressWithHttpInfo(rsp))); @@ -25227,7 +41381,7 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25243,19 +41397,48 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -25274,26 +41457,55 @@ export class ObservableNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -25303,7 +41515,7 @@ export class ObservableNetworkingV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25321,19 +41533,48 @@ export class ObservableNetworkingV1Api { * @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 listIngressClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressClassWithHttpInfo(rsp))); @@ -25354,7 +41595,7 @@ export class ObservableNetworkingV1Api { * @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 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): Observable { + public listIngressClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25372,19 +41613,48 @@ export class ObservableNetworkingV1Api { * @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 listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressForAllNamespacesWithHttpInfo(rsp))); @@ -25405,7 +41675,7 @@ export class ObservableNetworkingV1Api { * @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 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): Observable { + public listIngressForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25424,19 +41694,48 @@ export class ObservableNetworkingV1Api { * @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 listNamespacedIngressWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedIngressWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedIngressWithHttpInfo(rsp))); @@ -25458,7 +41757,7 @@ export class ObservableNetworkingV1Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25477,19 +41776,48 @@ export class ObservableNetworkingV1Api { * @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 listNamespacedNetworkPolicyWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedNetworkPolicyWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -25511,7 +41839,7 @@ export class ObservableNetworkingV1Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25529,19 +41857,48 @@ export class ObservableNetworkingV1Api { * @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 listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNetworkPolicyForAllNamespacesWithHttpInfo(rsp))); @@ -25562,7 +41919,7 @@ export class ObservableNetworkingV1Api { * @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 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): Observable { + public listNetworkPolicyForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25576,19 +41933,48 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIngressClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIngressClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIngressClassWithHttpInfo(rsp))); @@ -25605,7 +41991,7 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25620,19 +42006,48 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngressWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressWithHttpInfo(rsp))); @@ -25650,7 +42065,7 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25665,19 +42080,48 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressStatusWithHttpInfo(rsp))); @@ -25695,7 +42139,7 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25710,19 +42154,48 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -25740,7 +42213,7 @@ export class ObservableNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25749,19 +42222,48 @@ export class ObservableNetworkingV1Api { * @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). */ - public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readIngressClass(name, pretty, _options); + public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readIngressClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIngressClassWithHttpInfo(rsp))); @@ -25773,7 +42275,7 @@ export class ObservableNetworkingV1Api { * @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). */ - public readIngressClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readIngressClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readIngressClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25783,19 +42285,48 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedIngress(name, namespace, pretty, _options); + public readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedIngress(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressWithHttpInfo(rsp))); @@ -25808,7 +42339,7 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedIngressWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25818,19 +42349,48 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedIngressStatus(name, namespace, pretty, _options); + public readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedIngressStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressStatusWithHttpInfo(rsp))); @@ -25843,7 +42403,7 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25853,19 +42413,48 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedNetworkPolicy(name, namespace, pretty, _options); + public readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedNetworkPolicy(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -25878,7 +42467,7 @@ export class ObservableNetworkingV1Api { * @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 readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25891,19 +42480,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIngressClassWithHttpInfo(rsp))); @@ -25919,7 +42537,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25933,19 +42551,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressWithHttpInfo(rsp))); @@ -25962,7 +42609,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -25976,19 +42623,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressStatusWithHttpInfo(rsp))); @@ -26005,7 +42681,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26019,19 +42695,48 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedNetworkPolicyWithHttpInfo(rsp))); @@ -26048,7 +42753,7 @@ export class ObservableNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26078,19 +42783,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIPAddressWithHttpInfo(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIPAddressWithHttpInfo(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIPAddressWithHttpInfo(rsp))); @@ -26105,7 +42839,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIPAddress(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createIPAddress(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26117,19 +42851,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createServiceCIDRWithHttpInfo(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createServiceCIDRWithHttpInfo(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createServiceCIDRWithHttpInfo(rsp))); @@ -26144,7 +42907,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createServiceCIDR(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createServiceCIDR(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26166,19 +42929,48 @@ export class ObservableNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionIPAddressWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionIPAddressWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIPAddressWithHttpInfo(rsp))); @@ -26203,7 +42995,7 @@ export class ObservableNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26225,19 +43017,48 @@ export class ObservableNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionServiceCIDRWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionServiceCIDRWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionServiceCIDRWithHttpInfo(rsp))); @@ -26262,7 +43083,7 @@ export class ObservableNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26277,19 +43098,48 @@ export class ObservableNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIPAddressWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIPAddressWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIPAddressWithHttpInfo(rsp))); @@ -26307,7 +43157,7 @@ export class ObservableNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIPAddress(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteIPAddress(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26322,19 +43172,48 @@ export class ObservableNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteServiceCIDRWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteServiceCIDRWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteServiceCIDRWithHttpInfo(rsp))); @@ -26352,26 +43231,55 @@ export class ObservableNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteServiceCIDR(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteServiceCIDR(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -26381,7 +43289,7 @@ export class ObservableNetworkingV1beta1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26399,19 +43307,48 @@ export class ObservableNetworkingV1beta1Api { * @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 listIPAddressWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIPAddressWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIPAddressWithHttpInfo(rsp))); @@ -26432,7 +43369,7 @@ export class ObservableNetworkingV1beta1Api { * @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 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): Observable { + public listIPAddress(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26450,19 +43387,48 @@ export class ObservableNetworkingV1beta1Api { * @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 listServiceCIDRWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceCIDRWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceCIDRWithHttpInfo(rsp))); @@ -26483,7 +43449,7 @@ export class ObservableNetworkingV1beta1Api { * @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 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): Observable { + public listServiceCIDR(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26497,19 +43463,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIPAddressWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIPAddressWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIPAddressWithHttpInfo(rsp))); @@ -26526,7 +43521,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIPAddress(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchIPAddress(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26540,19 +43535,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDRWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRWithHttpInfo(rsp))); @@ -26569,7 +43593,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDR(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchServiceCIDR(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26583,19 +43607,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDRStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchServiceCIDRStatusWithHttpInfo(rsp))); @@ -26612,7 +43665,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchServiceCIDRStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26621,19 +43674,48 @@ export class ObservableNetworkingV1beta1Api { * @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 readIPAddressWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readIPAddress(name, pretty, _options); + public readIPAddressWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readIPAddress(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIPAddressWithHttpInfo(rsp))); @@ -26645,7 +43727,7 @@ export class ObservableNetworkingV1beta1Api { * @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 readIPAddress(name: string, pretty?: string, _options?: Configuration): Observable { + public readIPAddress(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readIPAddressWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26654,19 +43736,48 @@ export class ObservableNetworkingV1beta1Api { * @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 readServiceCIDRWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readServiceCIDR(name, pretty, _options); + public readServiceCIDRWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readServiceCIDR(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRWithHttpInfo(rsp))); @@ -26678,7 +43789,7 @@ export class ObservableNetworkingV1beta1Api { * @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 readServiceCIDR(name: string, pretty?: string, _options?: Configuration): Observable { + public readServiceCIDR(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readServiceCIDRWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26687,19 +43798,48 @@ export class ObservableNetworkingV1beta1Api { * @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 readServiceCIDRStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readServiceCIDRStatus(name, pretty, _options); + public readServiceCIDRStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readServiceCIDRStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readServiceCIDRStatusWithHttpInfo(rsp))); @@ -26711,7 +43851,7 @@ export class ObservableNetworkingV1beta1Api { * @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 readServiceCIDRStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readServiceCIDRStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readServiceCIDRStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26724,19 +43864,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIPAddressWithHttpInfo(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIPAddressWithHttpInfo(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIPAddressWithHttpInfo(rsp))); @@ -26752,7 +43921,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIPAddress(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceIPAddress(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26765,19 +43934,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDRWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRWithHttpInfo(rsp))); @@ -26793,7 +43991,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDR(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceServiceCIDR(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26806,19 +44004,48 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceServiceCIDRStatusWithHttpInfo(rsp))); @@ -26834,7 +44061,7 @@ export class ObservableNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRStatus(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceServiceCIDRStatus(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26859,19 +44086,48 @@ export class ObservableNodeApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -26881,7 +44137,7 @@ export class ObservableNodeApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26911,19 +44167,48 @@ export class ObservableNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClassWithHttpInfo(rsp))); @@ -26938,7 +44223,7 @@ export class ObservableNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -26960,19 +44245,48 @@ export class ObservableNodeV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionRuntimeClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionRuntimeClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClassWithHttpInfo(rsp))); @@ -26997,7 +44311,7 @@ export class ObservableNodeV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionRuntimeClass(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): Observable { + public deleteCollectionRuntimeClass(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?: ConfigurationOptions): Observable { return this.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27012,19 +44326,48 @@ export class ObservableNodeV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClassWithHttpInfo(rsp))); @@ -27042,26 +44385,55 @@ export class ObservableNodeV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -27071,7 +44443,7 @@ export class ObservableNodeV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27089,19 +44461,48 @@ export class ObservableNodeV1Api { * @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 listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClassWithHttpInfo(rsp))); @@ -27122,7 +44523,7 @@ export class ObservableNodeV1Api { * @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 listRuntimeClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRuntimeClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27136,19 +44537,48 @@ export class ObservableNodeV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClassWithHttpInfo(rsp))); @@ -27165,7 +44595,7 @@ export class ObservableNodeV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchRuntimeClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchRuntimeClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27174,19 +44604,48 @@ export class ObservableNodeV1Api { * @param name name of the RuntimeClass * @param [pretty] If \'true\', 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 readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _options); + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClassWithHttpInfo(rsp))); @@ -27198,7 +44657,7 @@ export class ObservableNodeV1Api { * @param name name of the RuntimeClass * @param [pretty] If \'true\', 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 readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readRuntimeClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readRuntimeClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27211,19 +44670,48 @@ export class ObservableNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClassWithHttpInfo(rsp))); @@ -27239,7 +44727,7 @@ export class ObservableNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27264,19 +44752,48 @@ export class ObservableOpenidApi { /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ - public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDKeyset(_options); + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDKeyset(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(rsp))); @@ -27286,7 +44803,7 @@ export class ObservableOpenidApi { /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ - public getServiceAccountIssuerOpenIDKeyset(_options?: Configuration): Observable { + public getServiceAccountIssuerOpenIDKeyset(_options?: ConfigurationOptions): Observable { return this.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27311,19 +44828,48 @@ export class ObservablePolicyApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -27333,7 +44879,7 @@ export class ObservablePolicyApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27364,19 +44910,48 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27392,7 +44967,7 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27415,19 +44990,48 @@ export class ObservablePolicyV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27453,7 +45057,7 @@ export class ObservablePolicyV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodDisruptionBudget(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): Observable { + public deleteCollectionNamespacedPodDisruptionBudget(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27469,19 +45073,48 @@ export class ObservablePolicyV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27500,26 +45133,55 @@ export class ObservablePolicyV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -27529,7 +45191,7 @@ export class ObservablePolicyV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27548,19 +45210,48 @@ export class ObservablePolicyV1Api { * @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 listNamespacedPodDisruptionBudgetWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodDisruptionBudgetWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27582,7 +45273,7 @@ export class ObservablePolicyV1Api { * @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 listNamespacedPodDisruptionBudget(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): Observable { + public listNamespacedPodDisruptionBudget(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?: ConfigurationOptions): Observable { return this.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27600,19 +45291,48 @@ export class ObservablePolicyV1Api { * @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 listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(rsp))); @@ -27633,7 +45353,7 @@ export class ObservablePolicyV1Api { * @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 listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27648,19 +45368,48 @@ export class ObservablePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27678,7 +45427,7 @@ export class ObservablePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudget(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodDisruptionBudget(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27693,19 +45442,48 @@ export class ObservablePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -27723,7 +45501,7 @@ export class ObservablePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27733,19 +45511,48 @@ export class ObservablePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27758,7 +45565,7 @@ export class ObservablePolicyV1Api { * @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 readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27768,19 +45575,48 @@ export class ObservablePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -27793,7 +45629,7 @@ export class ObservablePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27807,19 +45643,48 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); @@ -27836,7 +45701,7 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27850,19 +45715,48 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); @@ -27879,7 +45773,7 @@ export class ObservablePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27904,19 +45798,48 @@ export class ObservableRbacAuthorizationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -27926,7 +45849,7 @@ export class ObservableRbacAuthorizationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27956,19 +45879,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleWithHttpInfo(rsp))); @@ -27983,7 +45935,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -27995,19 +45947,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBindingWithHttpInfo(rsp))); @@ -28022,7 +46003,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28035,19 +46016,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleWithHttpInfo(rsp))); @@ -28063,7 +46073,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28076,19 +46086,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBindingWithHttpInfo(rsp))); @@ -28104,7 +46143,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28119,19 +46158,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleWithHttpInfo(rsp))); @@ -28149,7 +46217,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28164,19 +46232,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBindingWithHttpInfo(rsp))); @@ -28194,7 +46291,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28216,19 +46313,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleWithHttpInfo(rsp))); @@ -28253,7 +46379,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRole(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): Observable { + public deleteCollectionClusterRole(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?: ConfigurationOptions): Observable { return this.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28275,19 +46401,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBindingWithHttpInfo(rsp))); @@ -28312,7 +46467,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleBinding(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): Observable { + public deleteCollectionClusterRoleBinding(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?: ConfigurationOptions): Observable { return this.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28335,19 +46490,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleWithHttpInfo(rsp))); @@ -28373,7 +46557,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRole(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): Observable { + public deleteCollectionNamespacedRole(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28396,19 +46580,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBindingWithHttpInfo(rsp))); @@ -28434,7 +46647,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleBinding(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): Observable { + public deleteCollectionNamespacedRoleBinding(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28450,19 +46663,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleWithHttpInfo(rsp))); @@ -28481,7 +46723,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28497,19 +46739,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBindingWithHttpInfo(rsp))); @@ -28528,26 +46799,55 @@ export class ObservableRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -28557,7 +46857,7 @@ export class ObservableRbacAuthorizationV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28575,19 +46875,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listClusterRoleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRoleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleWithHttpInfo(rsp))); @@ -28608,7 +46937,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listClusterRole(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listClusterRole(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28626,19 +46955,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listClusterRoleBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRoleBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBindingWithHttpInfo(rsp))); @@ -28659,7 +47017,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listClusterRoleBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listClusterRoleBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28678,19 +47036,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listNamespacedRoleWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRoleWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleWithHttpInfo(rsp))); @@ -28712,7 +47099,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listNamespacedRole(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): Observable { + public listNamespacedRole(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?: ConfigurationOptions): Observable { return this.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28731,19 +47118,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listNamespacedRoleBindingWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRoleBindingWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBindingWithHttpInfo(rsp))); @@ -28765,7 +47181,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listNamespacedRoleBinding(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): Observable { + public listNamespacedRoleBinding(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?: ConfigurationOptions): Observable { return this.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28783,19 +47199,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespacesWithHttpInfo(rsp))); @@ -28816,7 +47261,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listRoleBindingForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRoleBindingForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28834,19 +47279,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespacesWithHttpInfo(rsp))); @@ -28867,7 +47341,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 listRoleForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRoleForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28881,19 +47355,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRoleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleWithHttpInfo(rsp))); @@ -28910,7 +47413,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRole(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterRole(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28924,19 +47427,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRoleBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBindingWithHttpInfo(rsp))); @@ -28953,7 +47485,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchClusterRoleBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -28968,19 +47500,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRoleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleWithHttpInfo(rsp))); @@ -28998,7 +47559,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRole(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedRole(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29013,19 +47574,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBindingWithHttpInfo(rsp))); @@ -29043,7 +47633,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleBinding(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedRoleBinding(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29052,19 +47642,48 @@ export class ObservableRbacAuthorizationV1Api { * @param name name of the ClusterRole * @param [pretty] If \'true\', 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 readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _options); + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleWithHttpInfo(rsp))); @@ -29076,7 +47695,7 @@ export class ObservableRbacAuthorizationV1Api { * @param name name of the ClusterRole * @param [pretty] If \'true\', 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 readClusterRole(name: string, pretty?: string, _options?: Configuration): Observable { + public readClusterRole(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readClusterRoleWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29085,19 +47704,48 @@ export class ObservableRbacAuthorizationV1Api { * @param name name of the ClusterRoleBinding * @param [pretty] If \'true\', 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 readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _options); + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBindingWithHttpInfo(rsp))); @@ -29109,7 +47757,7 @@ export class ObservableRbacAuthorizationV1Api { * @param name name of the ClusterRoleBinding * @param [pretty] If \'true\', 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 readClusterRoleBinding(name: string, pretty?: string, _options?: Configuration): Observable { + public readClusterRoleBinding(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readClusterRoleBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29119,19 +47767,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _options); + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleWithHttpInfo(rsp))); @@ -29144,7 +47821,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29154,19 +47831,48 @@ export class ObservableRbacAuthorizationV1Api { * @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 readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _options); + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBindingWithHttpInfo(rsp))); @@ -29179,7 +47885,7 @@ export class ObservableRbacAuthorizationV1Api { * @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 readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29192,19 +47898,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleWithHttpInfo(rsp))); @@ -29220,7 +47955,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRole(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterRole(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29233,19 +47968,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBindingWithHttpInfo(rsp))); @@ -29261,7 +48025,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleBinding(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceClusterRoleBinding(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29275,19 +48039,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleWithHttpInfo(rsp))); @@ -29304,7 +48097,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRole(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedRole(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29318,19 +48111,48 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBindingWithHttpInfo(rsp))); @@ -29347,7 +48169,7 @@ export class ObservableRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29372,19 +48194,48 @@ export class ObservableResourceApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -29394,7 +48245,7 @@ export class ObservableResourceApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29424,19 +48275,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClassWithHttpInfo(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClassWithHttpInfo(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceClassWithHttpInfo(rsp))); @@ -29451,7 +48331,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29464,19 +48344,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimWithHttpInfo(rsp))); @@ -29492,7 +48401,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29505,19 +48414,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -29533,7 +48471,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29545,19 +48483,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSliceWithHttpInfo(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSliceWithHttpInfo(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createResourceSliceWithHttpInfo(rsp))); @@ -29572,7 +48539,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29594,19 +48561,48 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionDeviceClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionDeviceClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceClassWithHttpInfo(rsp))); @@ -29631,7 +48627,7 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29654,19 +48650,48 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimWithHttpInfo(rsp))); @@ -29692,7 +48717,7 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29715,19 +48740,48 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -29753,7 +48807,7 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29775,19 +48829,48 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionResourceSliceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionResourceSliceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionResourceSliceWithHttpInfo(rsp))); @@ -29812,7 +48895,7 @@ export class ObservableResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29827,19 +48910,48 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceClassWithHttpInfo(rsp))); @@ -29857,7 +48969,7 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29873,19 +48985,48 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimWithHttpInfo(rsp))); @@ -29904,7 +49045,7 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29920,19 +49061,48 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -29951,7 +49121,7 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -29966,19 +49136,48 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteResourceSliceWithHttpInfo(rsp))); @@ -29996,26 +49195,55 @@ export class ObservableResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -30025,7 +49253,7 @@ export class ObservableResourceV1alpha3Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30043,19 +49271,48 @@ export class ObservableResourceV1alpha3Api { * @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 listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceClassWithHttpInfo(rsp))); @@ -30076,7 +49333,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30095,19 +49352,48 @@ export class ObservableResourceV1alpha3Api { * @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 listNamespacedResourceClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimWithHttpInfo(rsp))); @@ -30129,7 +49415,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30148,19 +49434,48 @@ export class ObservableResourceV1alpha3Api { * @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 listNamespacedResourceClaimTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -30182,7 +49497,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30200,19 +49515,48 @@ export class ObservableResourceV1alpha3Api { * @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 listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimForAllNamespacesWithHttpInfo(rsp))); @@ -30233,7 +49577,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30251,19 +49595,48 @@ export class ObservableResourceV1alpha3Api { * @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 listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -30284,7 +49657,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30302,19 +49675,48 @@ export class ObservableResourceV1alpha3Api { * @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 listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceSliceWithHttpInfo(rsp))); @@ -30335,7 +49737,7 @@ export class ObservableResourceV1alpha3Api { * @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 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): Observable { + public listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30349,19 +49751,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceClassWithHttpInfo(rsp))); @@ -30378,7 +49809,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30393,19 +49824,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimWithHttpInfo(rsp))); @@ -30423,7 +49883,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30438,19 +49898,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -30468,7 +49957,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30483,19 +49972,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -30513,7 +50031,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30527,19 +50045,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchResourceSliceWithHttpInfo(rsp))); @@ -30556,7 +50103,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30565,19 +50112,48 @@ export class ObservableResourceV1alpha3Api { * @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 readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _options); + public readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceClassWithHttpInfo(rsp))); @@ -30589,7 +50165,7 @@ export class ObservableResourceV1alpha3Api { * @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 readDeviceClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readDeviceClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readDeviceClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30599,19 +50175,48 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _options); + public readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimWithHttpInfo(rsp))); @@ -30624,7 +50229,7 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30634,19 +50239,48 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -30659,7 +50293,7 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30669,19 +50303,48 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -30694,7 +50357,7 @@ export class ObservableResourceV1alpha3Api { * @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 readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30703,19 +50366,48 @@ export class ObservableResourceV1alpha3Api { * @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 readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _options); + public readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readResourceSliceWithHttpInfo(rsp))); @@ -30727,7 +50419,7 @@ export class ObservableResourceV1alpha3Api { * @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 readResourceSlice(name: string, pretty?: string, _options?: Configuration): Observable { + public readResourceSlice(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readResourceSliceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30740,19 +50432,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClassWithHttpInfo(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClassWithHttpInfo(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceClassWithHttpInfo(rsp))); @@ -30768,7 +50489,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30782,19 +50503,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimWithHttpInfo(rsp))); @@ -30811,7 +50561,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30825,19 +50575,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -30854,7 +50633,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30868,19 +50647,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -30897,7 +50705,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30910,19 +50718,48 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSliceWithHttpInfo(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSliceWithHttpInfo(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceResourceSliceWithHttpInfo(rsp))); @@ -30938,7 +50775,7 @@ export class ObservableResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -30968,19 +50805,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClassWithHttpInfo(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClassWithHttpInfo(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createDeviceClassWithHttpInfo(rsp))); @@ -30995,7 +50861,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClass(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createDeviceClass(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31008,19 +50874,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimWithHttpInfo(rsp))); @@ -31036,7 +50931,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaim(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedResourceClaim(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31049,19 +50944,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -31077,7 +51001,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplate(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedResourceClaimTemplate(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31089,19 +51013,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSliceWithHttpInfo(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSliceWithHttpInfo(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createResourceSliceWithHttpInfo(rsp))); @@ -31116,7 +51069,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSlice(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createResourceSlice(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31138,19 +51091,48 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionDeviceClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionDeviceClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionDeviceClassWithHttpInfo(rsp))); @@ -31175,7 +51157,7 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31198,19 +51180,48 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimWithHttpInfo(rsp))); @@ -31236,7 +51247,7 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31259,19 +51270,48 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -31297,7 +51337,7 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31319,19 +51359,48 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionResourceSliceWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionResourceSliceWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionResourceSliceWithHttpInfo(rsp))); @@ -31356,7 +51425,7 @@ export class ObservableResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31371,19 +51440,48 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteDeviceClassWithHttpInfo(rsp))); @@ -31401,7 +51499,7 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31417,19 +51515,48 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimWithHttpInfo(rsp))); @@ -31448,7 +51575,7 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31464,19 +51591,48 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -31495,7 +51651,7 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31510,19 +51666,48 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteResourceSliceWithHttpInfo(rsp))); @@ -31540,26 +51725,55 @@ export class ObservableResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -31569,7 +51783,7 @@ export class ObservableResourceV1beta1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31587,19 +51801,48 @@ export class ObservableResourceV1beta1Api { * @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 listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeviceClassWithHttpInfo(rsp))); @@ -31620,7 +51863,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31639,19 +51882,48 @@ export class ObservableResourceV1beta1Api { * @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 listNamespacedResourceClaimWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimWithHttpInfo(rsp))); @@ -31673,7 +51945,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31692,19 +51964,48 @@ export class ObservableResourceV1beta1Api { * @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 listNamespacedResourceClaimTemplateWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimTemplateWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -31726,7 +52027,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31744,19 +52045,48 @@ export class ObservableResourceV1beta1Api { * @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 listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimForAllNamespacesWithHttpInfo(rsp))); @@ -31777,7 +52107,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31795,19 +52125,48 @@ export class ObservableResourceV1beta1Api { * @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 listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceClaimTemplateForAllNamespacesWithHttpInfo(rsp))); @@ -31828,7 +52187,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31846,19 +52205,48 @@ export class ObservableResourceV1beta1Api { * @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 listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceSliceWithHttpInfo(rsp))); @@ -31879,7 +52267,7 @@ export class ObservableResourceV1beta1Api { * @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 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): Observable { + public listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31893,19 +52281,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchDeviceClassWithHttpInfo(rsp))); @@ -31922,7 +52339,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31937,19 +52354,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimWithHttpInfo(rsp))); @@ -31967,7 +52413,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -31982,19 +52428,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -32012,7 +52487,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32027,19 +52502,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -32057,7 +52561,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32071,19 +52575,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchResourceSliceWithHttpInfo(rsp))); @@ -32100,7 +52633,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32109,19 +52642,48 @@ export class ObservableResourceV1beta1Api { * @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 readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _options); + public readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readDeviceClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readDeviceClassWithHttpInfo(rsp))); @@ -32133,7 +52695,7 @@ export class ObservableResourceV1beta1Api { * @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 readDeviceClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readDeviceClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readDeviceClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32143,19 +52705,48 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _options); + public readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceClaim(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimWithHttpInfo(rsp))); @@ -32168,7 +52759,7 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32178,19 +52769,48 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedResourceClaimStatus(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -32203,7 +52823,7 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32213,19 +52833,48 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readNamespacedResourceClaimTemplate(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -32238,7 +52887,7 @@ export class ObservableResourceV1beta1Api { * @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 readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32247,19 +52896,48 @@ export class ObservableResourceV1beta1Api { * @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 readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _options); + public readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readResourceSlice(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readResourceSliceWithHttpInfo(rsp))); @@ -32271,7 +52949,7 @@ export class ObservableResourceV1beta1Api { * @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 readResourceSlice(name: string, pretty?: string, _options?: Configuration): Observable { + public readResourceSlice(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readResourceSliceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32284,19 +52962,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClassWithHttpInfo(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClassWithHttpInfo(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceDeviceClassWithHttpInfo(rsp))); @@ -32312,7 +53019,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClass(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceDeviceClass(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32326,19 +53033,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimWithHttpInfo(rsp))); @@ -32355,7 +53091,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaim(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaim(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32369,19 +53105,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimStatusWithHttpInfo(rsp))); @@ -32398,7 +53163,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32412,19 +53177,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceClaimTemplateWithHttpInfo(rsp))); @@ -32441,7 +53235,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32454,19 +53248,48 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSliceWithHttpInfo(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSliceWithHttpInfo(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceResourceSliceWithHttpInfo(rsp))); @@ -32482,7 +53305,7 @@ export class ObservableResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSlice(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceResourceSlice(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32507,19 +53330,48 @@ export class ObservableSchedulingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -32529,7 +53381,7 @@ export class ObservableSchedulingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32559,19 +53411,48 @@ export class ObservableSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClassWithHttpInfo(rsp))); @@ -32586,7 +53467,7 @@ export class ObservableSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32608,19 +53489,48 @@ export class ObservableSchedulingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClassWithHttpInfo(rsp))); @@ -32645,7 +53555,7 @@ export class ObservableSchedulingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityClass(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): Observable { + public deleteCollectionPriorityClass(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?: ConfigurationOptions): Observable { return this.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32660,19 +53570,48 @@ export class ObservableSchedulingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClassWithHttpInfo(rsp))); @@ -32690,26 +53629,55 @@ export class ObservableSchedulingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -32719,7 +53687,7 @@ export class ObservableSchedulingV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32737,19 +53705,48 @@ export class ObservableSchedulingV1Api { * @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 listPriorityClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClassWithHttpInfo(rsp))); @@ -32770,7 +53767,7 @@ export class ObservableSchedulingV1Api { * @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 listPriorityClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPriorityClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32784,19 +53781,48 @@ export class ObservableSchedulingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClassWithHttpInfo(rsp))); @@ -32813,7 +53839,7 @@ export class ObservableSchedulingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchPriorityClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32822,19 +53848,48 @@ export class ObservableSchedulingV1Api { * @param name name of the PriorityClass * @param [pretty] If \'true\', 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 readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readPriorityClass(name, pretty, _options); + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readPriorityClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClassWithHttpInfo(rsp))); @@ -32846,7 +53901,7 @@ export class ObservableSchedulingV1Api { * @param name name of the PriorityClass * @param [pretty] If \'true\', 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 readPriorityClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readPriorityClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32859,19 +53914,48 @@ export class ObservableSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClassWithHttpInfo(rsp))); @@ -32887,7 +53971,7 @@ export class ObservableSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32912,19 +53996,48 @@ export class ObservableStorageApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -32934,7 +54047,7 @@ export class ObservableStorageApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -32964,19 +54077,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSIDriverWithHttpInfo(rsp))); @@ -32991,7 +54133,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33003,19 +54145,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSINodeWithHttpInfo(rsp))); @@ -33030,7 +54201,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33043,19 +54214,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -33071,7 +54271,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCSIStorageCapacity(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createNamespacedCSIStorageCapacity(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33083,19 +54283,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageClassWithHttpInfo(rsp))); @@ -33110,7 +54339,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageClass(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createStorageClass(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33122,19 +54351,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachmentWithHttpInfo(rsp))); @@ -33149,7 +54407,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttachment(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createVolumeAttachment(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33164,19 +54422,48 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSIDriverWithHttpInfo(rsp))); @@ -33194,7 +54481,7 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSIDriver(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCSIDriver(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33209,19 +54496,48 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSINodeWithHttpInfo(rsp))); @@ -33239,7 +54555,7 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSINode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCSINode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33261,19 +54577,48 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSIDriverWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSIDriverWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSIDriverWithHttpInfo(rsp))); @@ -33298,7 +54643,7 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSIDriver(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): Observable { + public deleteCollectionCSIDriver(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?: ConfigurationOptions): Observable { return this.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33320,19 +54665,48 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSINodeWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSINodeWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSINodeWithHttpInfo(rsp))); @@ -33357,7 +54731,7 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSINode(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): Observable { + public deleteCollectionCSINode(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?: ConfigurationOptions): Observable { return this.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33380,19 +54754,48 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -33418,7 +54821,7 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCSIStorageCapacity(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): Observable { + public deleteCollectionNamespacedCSIStorageCapacity(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?: ConfigurationOptions): Observable { return this.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33440,19 +54843,48 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageClassWithHttpInfo(rsp))); @@ -33477,7 +54909,7 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageClass(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): Observable { + public deleteCollectionStorageClass(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?: ConfigurationOptions): Observable { return this.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33499,19 +54931,48 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttachmentWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttachmentWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachmentWithHttpInfo(rsp))); @@ -33536,7 +54997,7 @@ export class ObservableStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttachment(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): Observable { + public deleteCollectionVolumeAttachment(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?: ConfigurationOptions): Observable { return this.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33552,19 +55013,48 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -33583,7 +55073,7 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33598,19 +55088,48 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageClassWithHttpInfo(rsp))); @@ -33628,7 +55147,7 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteStorageClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33643,19 +55162,48 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachmentWithHttpInfo(rsp))); @@ -33673,26 +55221,55 @@ export class ObservableStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -33702,7 +55279,7 @@ export class ObservableStorageV1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33720,19 +55297,48 @@ export class ObservableStorageV1Api { * @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 listCSIDriverWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIDriverWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIDriverWithHttpInfo(rsp))); @@ -33753,7 +55359,7 @@ export class ObservableStorageV1Api { * @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 listCSIDriver(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCSIDriver(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33771,19 +55377,48 @@ export class ObservableStorageV1Api { * @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 listCSINodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSINodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSINodeWithHttpInfo(rsp))); @@ -33804,7 +55439,7 @@ export class ObservableStorageV1Api { * @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 listCSINode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCSINode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33822,19 +55457,48 @@ export class ObservableStorageV1Api { * @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 listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespacesWithHttpInfo(rsp))); @@ -33855,7 +55519,7 @@ export class ObservableStorageV1Api { * @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 listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33874,19 +55538,48 @@ export class ObservableStorageV1Api { * @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 listNamespacedCSIStorageCapacityWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedCSIStorageCapacityWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -33908,7 +55601,7 @@ export class ObservableStorageV1Api { * @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 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33926,19 +55619,48 @@ export class ObservableStorageV1Api { * @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 listStorageClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageClassWithHttpInfo(rsp))); @@ -33959,7 +55681,7 @@ export class ObservableStorageV1Api { * @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 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): Observable { + public listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -33977,19 +55699,48 @@ export class ObservableStorageV1Api { * @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 listVolumeAttachmentWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttachmentWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachmentWithHttpInfo(rsp))); @@ -34010,7 +55761,7 @@ export class ObservableStorageV1Api { * @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 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): Observable { + public listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34024,19 +55775,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSIDriverWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSIDriverWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSIDriverWithHttpInfo(rsp))); @@ -34053,7 +55833,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSIDriver(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCSIDriver(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34067,19 +55847,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSINodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSINodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSINodeWithHttpInfo(rsp))); @@ -34096,7 +55905,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSINode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchCSINode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34111,19 +55920,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -34141,7 +55979,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCSIStorageCapacity(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCSIStorageCapacity(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34155,19 +55993,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageClassWithHttpInfo(rsp))); @@ -34184,7 +56051,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchStorageClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34198,19 +56065,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachmentWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentWithHttpInfo(rsp))); @@ -34227,7 +56123,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachment(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchVolumeAttachment(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34241,19 +56137,48 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachmentStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -34270,7 +56195,7 @@ export class ObservableStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchVolumeAttachmentStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34279,19 +56204,48 @@ export class ObservableStorageV1Api { * @param name name of the CSIDriver * @param [pretty] If \'true\', 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 readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCSIDriver(name, pretty, _options); + public readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readCSIDriver(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSIDriverWithHttpInfo(rsp))); @@ -34303,7 +56257,7 @@ export class ObservableStorageV1Api { * @param name name of the CSIDriver * @param [pretty] If \'true\', 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 readCSIDriver(name: string, pretty?: string, _options?: Configuration): Observable { + public readCSIDriver(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCSIDriverWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34312,19 +56266,48 @@ export class ObservableStorageV1Api { * @param name name of the CSINode * @param [pretty] If \'true\', 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 readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readCSINode(name, pretty, _options); + public readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readCSINode(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSINodeWithHttpInfo(rsp))); @@ -34336,7 +56319,7 @@ export class ObservableStorageV1Api { * @param name name of the CSINode * @param [pretty] If \'true\', 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 readCSINode(name: string, pretty?: string, _options?: Configuration): Observable { + public readCSINode(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readCSINodeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34346,19 +56329,48 @@ export class ObservableStorageV1Api { * @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 readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readNamespacedCSIStorageCapacity(name, namespace, pretty, _options); + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readNamespacedCSIStorageCapacity(name, namespace, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -34371,7 +56383,7 @@ export class ObservableStorageV1Api { * @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 readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34380,19 +56392,48 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readStorageClass(name, pretty, _options); + public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readStorageClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageClassWithHttpInfo(rsp))); @@ -34404,7 +56445,7 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readStorageClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readStorageClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34413,19 +56454,48 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readVolumeAttachment(name, pretty, _options); + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readVolumeAttachment(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentWithHttpInfo(rsp))); @@ -34437,7 +56507,7 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttachment(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readVolumeAttachmentWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34446,19 +56516,48 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readVolumeAttachmentStatus(name, pretty, _options); + public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readVolumeAttachmentStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -34470,7 +56569,7 @@ export class ObservableStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readVolumeAttachmentStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34483,19 +56582,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSIDriverWithHttpInfo(rsp))); @@ -34511,7 +56639,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34524,19 +56652,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSINodeWithHttpInfo(rsp))); @@ -34552,7 +56709,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34566,19 +56723,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacityWithHttpInfo(rsp))); @@ -34595,7 +56781,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34608,19 +56794,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageClassWithHttpInfo(rsp))); @@ -34636,7 +56851,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34649,19 +56864,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentWithHttpInfo(rsp))); @@ -34677,7 +56921,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34690,19 +56934,48 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentStatusWithHttpInfo(rsp))); @@ -34718,7 +56991,7 @@ export class ObservableStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34748,19 +57021,48 @@ export class ObservableStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClassWithHttpInfo(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClassWithHttpInfo(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttributesClassWithHttpInfo(rsp))); @@ -34775,7 +57077,7 @@ export class ObservableStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClass(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createVolumeAttributesClass(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34797,19 +57099,48 @@ export class ObservableStorageV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttributesClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttributesClassWithHttpInfo(rsp))); @@ -34834,7 +57165,7 @@ export class ObservableStorageV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34849,19 +57180,48 @@ export class ObservableStorageV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttributesClassWithHttpInfo(rsp))); @@ -34879,26 +57239,55 @@ export class ObservableStorageV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -34908,7 +57297,7 @@ export class ObservableStorageV1alpha1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34926,19 +57315,48 @@ export class ObservableStorageV1alpha1Api { * @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 listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttributesClassWithHttpInfo(rsp))); @@ -34959,7 +57377,7 @@ export class ObservableStorageV1alpha1Api { * @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 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): Observable { + public listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -34973,19 +57391,48 @@ export class ObservableStorageV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttributesClassWithHttpInfo(rsp))); @@ -35002,7 +57449,7 @@ export class ObservableStorageV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35011,19 +57458,48 @@ export class ObservableStorageV1alpha1Api { * @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 readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _options); + public readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttributesClassWithHttpInfo(rsp))); @@ -35035,7 +57511,7 @@ export class ObservableStorageV1alpha1Api { * @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 readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttributesClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readVolumeAttributesClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35048,19 +57524,48 @@ export class ObservableStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttributesClassWithHttpInfo(rsp))); @@ -35076,7 +57581,7 @@ export class ObservableStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClass(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceVolumeAttributesClass(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35106,19 +57611,48 @@ export class ObservableStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClassWithHttpInfo(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClassWithHttpInfo(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttributesClassWithHttpInfo(rsp))); @@ -35133,7 +57667,7 @@ export class ObservableStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClass(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createVolumeAttributesClass(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35155,19 +57689,48 @@ export class ObservableStorageV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttributesClassWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttributesClassWithHttpInfo(rsp))); @@ -35192,7 +57755,7 @@ export class ObservableStorageV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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): Observable { + public 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?: ConfigurationOptions): Observable { return this.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35207,19 +57770,48 @@ export class ObservableStorageV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttributesClassWithHttpInfo(rsp))); @@ -35237,26 +57829,55 @@ export class ObservableStorageV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -35266,7 +57887,7 @@ export class ObservableStorageV1beta1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35284,19 +57905,48 @@ export class ObservableStorageV1beta1Api { * @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 listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttributesClassWithHttpInfo(rsp))); @@ -35317,7 +57967,7 @@ export class ObservableStorageV1beta1Api { * @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 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): Observable { + public listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35331,19 +57981,48 @@ export class ObservableStorageV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttributesClassWithHttpInfo(rsp))); @@ -35360,7 +58039,7 @@ export class ObservableStorageV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35369,19 +58048,48 @@ export class ObservableStorageV1beta1Api { * @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 readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _options); + public readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readVolumeAttributesClass(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttributesClassWithHttpInfo(rsp))); @@ -35393,7 +58101,7 @@ export class ObservableStorageV1beta1Api { * @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 readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttributesClass(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readVolumeAttributesClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35406,19 +58114,48 @@ export class ObservableStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttributesClassWithHttpInfo(rsp))); @@ -35434,7 +58171,7 @@ export class ObservableStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClass(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceVolumeAttributesClass(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35459,19 +58196,48 @@ export class ObservableStoragemigrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIGroup(_options); + public getAPIGroupWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIGroup(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); @@ -35481,7 +58247,7 @@ export class ObservableStoragemigrationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroup(_options?: ConfigurationOptions): Observable { return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35511,19 +58277,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionMigrationWithHttpInfo(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersionMigrationWithHttpInfo(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersionMigrationWithHttpInfo(rsp))); @@ -35538,7 +58333,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionMigration(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public createStorageVersionMigration(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35560,19 +58355,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionMigrationWithHttpInfo(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): Observable> { - const requestContextPromise = this.requestFactory.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersionMigrationWithHttpInfo(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?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersionMigrationWithHttpInfo(rsp))); @@ -35597,7 +58421,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionMigration(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): Observable { + public deleteCollectionStorageVersionMigration(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?: ConfigurationOptions): Observable { return this.deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35612,19 +58436,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersionMigrationWithHttpInfo(rsp))); @@ -35642,26 +58495,55 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionMigration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteStorageVersionMigration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: ConfigurationOptions): Observable { return this.deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResourcesWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getAPIResources(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); @@ -35671,7 +58553,7 @@ export class ObservableStoragemigrationV1alpha1Api { /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResources(_options?: ConfigurationOptions): Observable { return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35689,19 +58571,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @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 listStorageVersionMigrationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersionMigrationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersionMigrationWithHttpInfo(rsp))); @@ -35722,7 +58633,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @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 listStorageVersionMigration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listStorageVersionMigration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: ConfigurationOptions): Observable { return this.listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35736,19 +58647,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigrationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionMigrationWithHttpInfo(rsp))); @@ -35765,7 +58705,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersionMigration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35779,19 +58719,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigrationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -35808,7 +58777,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersionMigrationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: ConfigurationOptions): Observable { return this.patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35817,19 +58786,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readStorageVersionMigration(name, pretty, _options); + public readStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.readStorageVersionMigration(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionMigrationWithHttpInfo(rsp))); @@ -35841,7 +58839,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigration(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersionMigration(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readStorageVersionMigrationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35850,19 +58848,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.readStorageVersionMigrationStatus(name, pretty, _options); + public readStorageVersionMigrationStatusWithHttpInfo(name: string, pretty?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.readStorageVersionMigrationStatus(name, pretty, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -35874,7 +58901,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersionMigrationStatus(name: string, pretty?: string, _options?: ConfigurationOptions): Observable { return this.readStorageVersionMigrationStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35887,19 +58914,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigrationWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionMigrationWithHttpInfo(rsp))); @@ -35915,7 +58971,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigration(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceStorageVersionMigration(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35928,19 +58984,48 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationStatusWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigrationStatusWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionMigrationStatusWithHttpInfo(rsp))); @@ -35956,7 +59041,7 @@ export class ObservableStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationStatus(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Observable { + public replaceStorageVersionMigrationStatus(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: ConfigurationOptions): Observable { return this.replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -35981,19 +59066,48 @@ export class ObservableVersionApi { /** * get the code version */ - public getCodeWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getCode(_options); + public getCodeWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + + const requestContextPromise = this.requestFactory.getCode(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getCodeWithHttpInfo(rsp))); @@ -36003,7 +59117,7 @@ export class ObservableVersionApi { /** * get the code version */ - public getCode(_options?: Configuration): Observable { + public getCode(_options?: ConfigurationOptions): Observable { return this.getCodeWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } @@ -36028,19 +59142,48 @@ export class ObservableWellKnownApi { /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ - public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: Configuration): Observable> { - const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDConfiguration(_options); + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: ConfigurationOptions): Observable> { + let _config = this.configuration; + let allMiddleware: Middleware[] = []; + if (_options && _options.middleware){ + const middlewareMergeStrategy = _options.middlewareMergeStrategy || 'replace' // default to replace behavior + // call-time middleware provided + const calltimeMiddleware: Middleware[] = _options.middleware; + + switch(middlewareMergeStrategy){ + case 'append': + allMiddleware = this.configuration.middleware.concat(calltimeMiddleware); + break; + case 'prepend': + allMiddleware = calltimeMiddleware.concat(this.configuration.middleware) + break; + case 'replace': + allMiddleware = calltimeMiddleware + break; + default: + throw new Error(`unrecognized middleware merge strategy '${middlewareMergeStrategy}'`) + } + } + if (_options){ + _config = { + baseServer: _options.baseServer || this.configuration.baseServer, + httpApi: _options.httpApi || this.configuration.httpApi, + authMethods: _options.authMethods || this.configuration.authMethods, + middleware: allMiddleware || this.configuration.middleware + }; + } + const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDConfiguration(_config); // build promise chain let middlewarePreObservable = from(requestContextPromise); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). pipe(mergeMap((response: ResponseContext) => { let middlewarePostObservable = of(response); - for (const middleware of this.configuration.middleware) { + for (const middleware of allMiddleware.reverse()) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(rsp))); @@ -36050,7 +59193,7 @@ export class ObservableWellKnownApi { /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ - public getServiceAccountIssuerOpenIDConfiguration(_options?: Configuration): Observable { + public getServiceAccountIssuerOpenIDConfiguration(_options?: ConfigurationOptions): Observable { return this.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } diff --git a/src/gen/types/PromiseAPI.ts b/src/gen/types/PromiseAPI.ts index 422356c5221..1f7d5d4e2d0 100644 --- a/src/gen/types/PromiseAPI.ts +++ b/src/gen/types/PromiseAPI.ts @@ -1,5 +1,6 @@ import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http.js'; -import { Configuration} from '../configuration.js' +import { Configuration, ConfigurationOptions, PromiseConfigurationOptions } from '../configuration.js' +import { PromiseMiddleware, Middleware, PromiseMiddlewareWrapper } from '../middleware.js'; import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference.js'; import { AdmissionregistrationV1WebhookClientConfig } from '../models/AdmissionregistrationV1WebhookClientConfig.js'; @@ -643,16 +644,40 @@ export class PromiseAdmissionregistrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -683,8 +708,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -696,8 +733,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -709,8 +758,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyWithHttpInfo(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyWithHttpInfo(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -722,8 +783,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicy(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicy(body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -735,8 +808,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -748,8 +833,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBinding(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBinding(body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -761,8 +858,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -774,8 +883,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -797,8 +918,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(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> { - const result = this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -820,8 +953,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingWebhookConfiguration(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 { - const result = this.api.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingWebhookConfiguration(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -843,8 +988,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -866,8 +1023,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -889,8 +1058,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -912,8 +1093,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -935,8 +1128,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(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> { - const result = this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -958,8 +1163,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingWebhookConfiguration(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 { - const result = this.api.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingWebhookConfiguration(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -974,8 +1191,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -990,8 +1219,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1006,8 +1247,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1022,8 +1275,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1038,8 +1303,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1054,8 +1331,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1070,8 +1359,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1086,24 +1387,60 @@ export class PromiseAdmissionregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -1121,8 +1458,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listMutatingWebhookConfigurationWithHttpInfo(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> { - const result = this.api.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1140,8 +1489,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listMutatingWebhookConfiguration(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 { - const result = this.api.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1159,8 +1520,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listValidatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1178,8 +1551,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 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 { - const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1197,8 +1582,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listValidatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1216,8 +1613,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 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 { - const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1235,8 +1644,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listValidatingWebhookConfigurationWithHttpInfo(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> { - const result = this.api.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1254,8 +1675,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 listValidatingWebhookConfiguration(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 { - const result = this.api.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1269,8 +1702,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1284,8 +1729,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1299,8 +1756,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1314,8 +1783,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1329,8 +1810,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1344,8 +1837,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1359,8 +1864,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1374,8 +1891,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1389,8 +1918,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1404,8 +1945,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingWebhookConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1414,8 +1967,20 @@ export class PromiseAdmissionregistrationV1Api { * @param name name of the MutatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, _options); + public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -1424,8 +1989,20 @@ export class PromiseAdmissionregistrationV1Api { * @param name name of the MutatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readMutatingWebhookConfiguration(name, pretty, _options); + public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingWebhookConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -1434,8 +2011,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -1444,8 +2033,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicy(name, pretty, _options); + public readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -1454,8 +2055,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -1464,8 +2077,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, _options); + public readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -1474,8 +2099,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -1484,8 +2121,20 @@ export class PromiseAdmissionregistrationV1Api { * @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 readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, _options); + public readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -1494,8 +2143,20 @@ export class PromiseAdmissionregistrationV1Api { * @param name name of the ValidatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, _options); + public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -1504,8 +2165,20 @@ export class PromiseAdmissionregistrationV1Api { * @param name name of the ValidatingWebhookConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingWebhookConfiguration(name, pretty, _options); + public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingWebhookConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -1518,8 +2191,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1532,8 +2217,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1546,8 +2243,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1560,8 +2269,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicy(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicy(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1574,8 +2295,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1588,8 +2321,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBinding(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBinding(name: string, body: V1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1602,8 +2347,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1616,8 +2373,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatus(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatus(name: string, body: V1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1630,8 +2399,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1644,8 +2425,20 @@ export class PromiseAdmissionregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1676,8 +2469,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyWithHttpInfo(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicyWithHttpInfo(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1689,8 +2494,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicy(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicy(body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1702,8 +2519,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyBindingWithHttpInfo(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicyBindingWithHttpInfo(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1715,8 +2544,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createMutatingAdmissionPolicyBinding(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createMutatingAdmissionPolicyBinding(body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createMutatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -1738,8 +2579,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingAdmissionPolicyWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1761,8 +2614,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1784,8 +2649,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1807,8 +2684,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionMutatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -1823,8 +2712,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1839,8 +2740,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1855,8 +2768,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -1871,24 +2796,60 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteMutatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteMutatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -1906,8 +2867,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 listMutatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1925,8 +2898,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 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 { - const result = this.api.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1944,8 +2929,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 listMutatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1963,8 +2960,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 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 { - const result = this.api.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listMutatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listMutatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -1978,8 +2987,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -1993,8 +3014,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2008,8 +3041,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2023,8 +3068,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchMutatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2033,8 +3090,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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). */ - public readMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readMutatingAdmissionPolicyWithHttpInfo(name, pretty, _options); + public readMutatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2043,8 +3112,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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). */ - public readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readMutatingAdmissionPolicy(name, pretty, _options); + public readMutatingAdmissionPolicy(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -2053,8 +3134,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 readMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options); + public readMutatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2063,8 +3156,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @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 readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readMutatingAdmissionPolicyBinding(name, pretty, _options); + public readMutatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readMutatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -2077,8 +3182,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicyWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2091,8 +3208,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicy(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicy(name: string, body: V1alpha1MutatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2105,8 +3234,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2119,8 +3260,20 @@ export class PromiseAdmissionregistrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceMutatingAdmissionPolicyBinding(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceMutatingAdmissionPolicyBinding(name: string, body: V1alpha1MutatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceMutatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2151,8 +3304,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyWithHttpInfo(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyWithHttpInfo(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2164,8 +3329,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicy(body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicy(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2177,8 +3354,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBindingWithHttpInfo(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2190,8 +3379,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createValidatingAdmissionPolicyBinding(body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createValidatingAdmissionPolicyBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2213,8 +3414,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2236,8 +3449,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2259,8 +3484,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2282,8 +3519,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionValidatingAdmissionPolicyBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2298,8 +3547,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2314,8 +3575,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicy(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2330,8 +3603,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2346,24 +3631,60 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteValidatingAdmissionPolicyBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteValidatingAdmissionPolicyBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -2381,8 +3702,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 listValidatingAdmissionPolicyWithHttpInfo(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> { - const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2400,8 +3733,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 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 { - const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2419,8 +3764,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 listValidatingAdmissionPolicyBindingWithHttpInfo(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> { - const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2438,8 +3795,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 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 { - const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listValidatingAdmissionPolicyBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listValidatingAdmissionPolicyBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2453,8 +3822,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2468,8 +3849,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2483,8 +3876,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2498,8 +3903,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2513,8 +3930,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2528,8 +3957,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchValidatingAdmissionPolicyStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2538,8 +3979,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2548,8 +4001,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicy(name, pretty, _options); + public readValidatingAdmissionPolicy(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicy(name, pretty, observableOptions); return result.toPromise(); } @@ -2558,8 +4023,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyBindingWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2568,8 +4045,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, _options); + public readValidatingAdmissionPolicyBinding(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -2578,8 +4067,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, _options); + public readValidatingAdmissionPolicyStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2588,8 +4089,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @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 readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, _options); + public readValidatingAdmissionPolicyStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readValidatingAdmissionPolicyStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -2602,8 +4115,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2616,8 +4141,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicy(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicy(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2630,8 +4167,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBindingWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2644,8 +4193,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyBinding(name: string, body: V1beta1ValidatingAdmissionPolicyBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2658,8 +4219,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatusWithHttpInfo(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2672,8 +4245,20 @@ export class PromiseAdmissionregistrationV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceValidatingAdmissionPolicyStatus(name: string, body: V1beta1ValidatingAdmissionPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceValidatingAdmissionPolicyStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2699,16 +4284,40 @@ export class PromiseApiextensionsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -2739,8 +4348,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2752,8 +4373,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -2775,8 +4408,20 @@ export class PromiseApiextensionsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCustomResourceDefinitionWithHttpInfo(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> { - const result = this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCustomResourceDefinitionWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2798,8 +4443,20 @@ export class PromiseApiextensionsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCustomResourceDefinition(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 { - const result = this.api.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCustomResourceDefinition(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -2814,8 +4471,20 @@ export class PromiseApiextensionsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -2830,24 +4499,60 @@ export class PromiseApiextensionsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -2865,8 +4570,20 @@ export class PromiseApiextensionsV1Api { * @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 listCustomResourceDefinitionWithHttpInfo(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> { - const result = this.api.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCustomResourceDefinitionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2884,8 +4601,20 @@ export class PromiseApiextensionsV1Api { * @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 listCustomResourceDefinition(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 { - const result = this.api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCustomResourceDefinition(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -2899,8 +4628,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinitionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2914,8 +4655,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinition(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinition(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2929,8 +4682,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinitionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2944,8 +4709,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCustomResourceDefinitionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCustomResourceDefinitionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -2954,8 +4731,20 @@ export class PromiseApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCustomResourceDefinitionWithHttpInfo(name, pretty, _options); + public readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCustomResourceDefinitionWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2964,8 +4753,20 @@ export class PromiseApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinition(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCustomResourceDefinition(name, pretty, _options); + public readCustomResourceDefinition(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCustomResourceDefinition(name, pretty, observableOptions); return result.toPromise(); } @@ -2974,8 +4775,20 @@ export class PromiseApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, _options); + public readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -2984,8 +4797,20 @@ export class PromiseApiextensionsV1Api { * @param name name of the CustomResourceDefinition * @param [pretty] If \'true\', 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 readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCustomResourceDefinitionStatus(name, pretty, _options); + public readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCustomResourceDefinitionStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -2998,8 +4823,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3012,8 +4849,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3026,8 +4875,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3040,8 +4901,20 @@ export class PromiseApiextensionsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3067,16 +4940,40 @@ export class PromiseApiregistrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -3107,8 +5004,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3120,8 +5029,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createAPIService(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3136,8 +5057,20 @@ export class PromiseApiregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3152,8 +5085,20 @@ export class PromiseApiregistrationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3175,8 +5120,20 @@ export class PromiseApiregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionAPIServiceWithHttpInfo(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> { - const result = this.api.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionAPIServiceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3198,24 +5155,60 @@ export class PromiseApiregistrationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionAPIService(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 { - const result = this.api.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionAPIService(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -3233,8 +5226,20 @@ export class PromiseApiregistrationV1Api { * @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 listAPIServiceWithHttpInfo(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> { - const result = this.api.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listAPIServiceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3252,8 +5257,20 @@ export class PromiseApiregistrationV1Api { * @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 listAPIService(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 { - const result = this.api.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listAPIService(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -3267,8 +5284,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIServiceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3282,8 +5311,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIService(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIService(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3297,8 +5338,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIServiceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3312,8 +5365,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchAPIServiceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchAPIServiceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -3322,8 +5387,20 @@ export class PromiseApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readAPIServiceWithHttpInfo(name, pretty, _options); + public readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readAPIServiceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -3332,8 +5409,20 @@ export class PromiseApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIService(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readAPIService(name, pretty, _options); + public readAPIService(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readAPIService(name, pretty, observableOptions); return result.toPromise(); } @@ -3342,8 +5431,20 @@ export class PromiseApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readAPIServiceStatusWithHttpInfo(name, pretty, _options); + public readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readAPIServiceStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -3352,8 +5453,20 @@ export class PromiseApiregistrationV1Api { * @param name name of the APIService * @param [pretty] If \'true\', 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 readAPIServiceStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readAPIServiceStatus(name, pretty, _options); + public readAPIServiceStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readAPIServiceStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -3366,8 +5479,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3380,8 +5505,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceAPIService(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3394,8 +5531,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3408,8 +5557,20 @@ export class PromiseApiregistrationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3435,16 +5596,40 @@ export class PromiseApisApi { /** * get available API versions */ - public getAPIVersionsWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIVersionsWithHttpInfo(_options); + public getAPIVersionsWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIVersionsWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Promise { - const result = this.api.getAPIVersions(_options); + public getAPIVersions(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIVersions(observableOptions); return result.toPromise(); } @@ -3470,16 +5655,40 @@ export class PromiseAppsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -3511,8 +5720,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3525,8 +5746,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3539,8 +5772,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3553,8 +5798,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3567,8 +5824,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3581,8 +5850,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3595,8 +5876,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3609,8 +5902,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3623,8 +5928,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3637,8 +5954,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -3661,8 +5990,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedControllerRevisionWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3685,8 +6026,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedControllerRevision(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 { - const result = this.api.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedControllerRevision(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3709,8 +6062,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDaemonSetWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDaemonSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3733,8 +6098,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDaemonSet(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 { - const result = this.api.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDaemonSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3757,8 +6134,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDeploymentWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDeploymentWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3781,8 +6170,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedDeployment(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 { - const result = this.api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedDeployment(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3805,8 +6206,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicaSetWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicaSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3829,8 +6242,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicaSet(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 { - const result = this.api.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicaSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3853,8 +6278,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedStatefulSetWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedStatefulSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3877,8 +6314,20 @@ export class PromiseAppsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedStatefulSet(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 { - const result = this.api.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedStatefulSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -3894,8 +6343,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3911,8 +6372,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3928,8 +6401,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3945,8 +6430,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3962,8 +6459,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3979,8 +6488,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -3996,8 +6517,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -4013,8 +6546,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -4030,8 +6575,20 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -4047,24 +6604,60 @@ export class PromiseAppsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -4082,8 +6675,20 @@ export class PromiseAppsV1Api { * @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 listControllerRevisionForAllNamespacesWithHttpInfo(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> { - const result = this.api.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4101,8 +6706,20 @@ export class PromiseAppsV1Api { * @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 listControllerRevisionForAllNamespaces(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 { - const result = this.api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4120,8 +6737,20 @@ export class PromiseAppsV1Api { * @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 listDaemonSetForAllNamespacesWithHttpInfo(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> { - const result = this.api.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4139,8 +6768,20 @@ export class PromiseAppsV1Api { * @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 listDaemonSetForAllNamespaces(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 { - const result = this.api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4158,8 +6799,20 @@ export class PromiseAppsV1Api { * @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 listDeploymentForAllNamespacesWithHttpInfo(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> { - const result = this.api.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4177,8 +6830,20 @@ export class PromiseAppsV1Api { * @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 listDeploymentForAllNamespaces(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 { - const result = this.api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeploymentForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4197,8 +6862,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedControllerRevisionWithHttpInfo(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> { - const result = this.api.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedControllerRevisionWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4217,8 +6894,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedControllerRevision(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 { - const result = this.api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedControllerRevision(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4237,8 +6926,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedDaemonSetWithHttpInfo(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> { - const result = this.api.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDaemonSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4257,8 +6958,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedDaemonSet(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 { - const result = this.api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDaemonSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4277,8 +6990,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedDeploymentWithHttpInfo(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> { - const result = this.api.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDeploymentWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4297,8 +7022,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedDeployment(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 { - const result = this.api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedDeployment(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4317,8 +7054,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedReplicaSetWithHttpInfo(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> { - const result = this.api.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicaSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4337,8 +7086,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedReplicaSet(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 { - const result = this.api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicaSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4357,8 +7118,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedStatefulSetWithHttpInfo(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> { - const result = this.api.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedStatefulSetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4377,8 +7150,20 @@ export class PromiseAppsV1Api { * @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 listNamespacedStatefulSet(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 { - const result = this.api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedStatefulSet(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4396,8 +7181,20 @@ export class PromiseAppsV1Api { * @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 listReplicaSetForAllNamespacesWithHttpInfo(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> { - const result = this.api.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4415,8 +7212,20 @@ export class PromiseAppsV1Api { * @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 listReplicaSetForAllNamespaces(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 { - const result = this.api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicaSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4434,8 +7243,20 @@ export class PromiseAppsV1Api { * @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 listStatefulSetForAllNamespacesWithHttpInfo(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> { - const result = this.api.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4453,8 +7274,20 @@ export class PromiseAppsV1Api { * @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 listStatefulSetForAllNamespaces(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 { - const result = this.api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStatefulSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -4469,8 +7302,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4485,8 +7330,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedControllerRevision(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedControllerRevision(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4501,8 +7358,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4517,8 +7386,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4533,8 +7414,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4549,8 +7442,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDaemonSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDaemonSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4565,8 +7470,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4581,8 +7498,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeployment(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeployment(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4597,8 +7526,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4613,8 +7554,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4629,8 +7582,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4645,8 +7610,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4661,8 +7638,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4677,8 +7666,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4693,8 +7694,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4709,8 +7722,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4725,8 +7750,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4741,8 +7778,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicaSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicaSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4757,8 +7806,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4773,8 +7834,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4789,8 +7862,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4805,8 +7890,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4821,8 +7918,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4837,8 +7946,20 @@ export class PromiseAppsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedStatefulSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedStatefulSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -4848,8 +7969,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4859,8 +7992,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedControllerRevision(name, namespace, pretty, _options); + public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedControllerRevision(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4870,8 +8015,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4881,8 +8038,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDaemonSet(name, namespace, pretty, _options); + public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDaemonSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4892,8 +8061,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4903,8 +8084,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDaemonSetStatus(name, namespace, pretty, _options); + public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDaemonSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4914,8 +8107,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4925,8 +8130,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeployment(name, namespace, pretty, _options); + public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeployment(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4936,8 +8153,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4947,8 +8176,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeploymentScale(name, namespace, pretty, _options); + public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeploymentScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4958,8 +8199,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4969,8 +8222,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeploymentStatus(name, namespace, pretty, _options); + public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedDeploymentStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4980,8 +8245,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -4991,8 +8268,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSet(name, namespace, pretty, _options); + public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5002,8 +8291,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5013,8 +8314,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSetScale(name, namespace, pretty, _options); + public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSetScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5024,8 +8337,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5035,8 +8360,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSetStatus(name, namespace, pretty, _options); + public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicaSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5046,8 +8383,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5057,8 +8406,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSet(name, namespace, pretty, _options); + public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSet(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5068,8 +8429,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5079,8 +8452,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSetScale(name, namespace, pretty, _options); + public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSetScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5090,8 +8475,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5101,8 +8498,20 @@ export class PromiseAppsV1Api { * @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 readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSetStatus(name, namespace, pretty, _options); + public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedStatefulSetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -5116,8 +8525,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5131,8 +8552,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5146,8 +8579,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5161,8 +8606,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5176,8 +8633,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5191,8 +8660,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5206,8 +8687,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5221,8 +8714,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5236,8 +8741,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5251,8 +8768,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5266,8 +8795,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5281,8 +8822,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5296,8 +8849,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5311,8 +8876,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5326,8 +8903,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5341,8 +8930,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5356,8 +8957,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5371,8 +8984,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5386,8 +9011,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5401,8 +9038,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5416,8 +9065,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5431,8 +9092,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5446,8 +9119,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5461,8 +9146,20 @@ export class PromiseAppsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5488,16 +9185,40 @@ export class PromiseAuthenticationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -5528,8 +9249,20 @@ export class PromiseAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReviewWithHttpInfo(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReviewWithHttpInfo(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5541,8 +9274,20 @@ export class PromiseAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReview(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReview(body: V1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5554,8 +9299,20 @@ export class PromiseAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5567,24 +9324,60 @@ export class PromiseAuthenticationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createTokenReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -5615,8 +9408,20 @@ export class PromiseAuthenticationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReviewWithHttpInfo(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReviewWithHttpInfo(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5628,24 +9433,60 @@ export class PromiseAuthenticationV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectReview(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectReview(body: V1beta1SelfSubjectReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -5671,16 +9512,40 @@ export class PromiseAuthorizationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -5712,8 +9577,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5726,8 +9603,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5739,8 +9628,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5752,8 +9653,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5765,8 +9678,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5778,8 +9703,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSelfSubjectRulesReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5791,8 +9728,20 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -5804,24 +9753,60 @@ export class PromiseAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createSubjectAccessReview(body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -5847,16 +9832,40 @@ export class PromiseAutoscalingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -5888,8 +9897,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5902,8 +9923,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -5926,8 +9959,20 @@ export class PromiseAutoscalingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -5950,8 +9995,20 @@ export class PromiseAutoscalingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(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 { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscaler(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -5967,8 +10024,20 @@ export class PromiseAutoscalingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -5984,24 +10053,60 @@ export class PromiseAutoscalingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -6019,8 +10124,20 @@ export class PromiseAutoscalingV1Api { * @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 listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(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> { - const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6038,8 +10155,20 @@ export class PromiseAutoscalingV1Api { * @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 listHorizontalPodAutoscalerForAllNamespaces(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 { - const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6058,8 +10187,20 @@ export class PromiseAutoscalingV1Api { * @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 listNamespacedHorizontalPodAutoscalerWithHttpInfo(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> { - const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6078,8 +10219,20 @@ export class PromiseAutoscalingV1Api { * @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 listNamespacedHorizontalPodAutoscaler(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 { - const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscaler(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6094,8 +10247,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6110,8 +10275,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6126,8 +10303,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6142,8 +10331,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6153,8 +10354,20 @@ export class PromiseAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6164,8 +10377,20 @@ export class PromiseAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6175,8 +10400,20 @@ export class PromiseAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6186,8 +10423,20 @@ export class PromiseAutoscalingV1Api { * @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 readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6201,8 +10450,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6216,8 +10477,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6231,8 +10504,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6246,8 +10531,20 @@ export class PromiseAutoscalingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6279,8 +10576,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6293,8 +10602,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6317,8 +10638,20 @@ export class PromiseAutoscalingV2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6341,8 +10674,20 @@ export class PromiseAutoscalingV2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(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 { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscaler(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6358,8 +10703,20 @@ export class PromiseAutoscalingV2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6375,24 +10732,60 @@ export class PromiseAutoscalingV2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -6410,8 +10803,20 @@ export class PromiseAutoscalingV2Api { * @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 listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(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> { - const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6429,8 +10834,20 @@ export class PromiseAutoscalingV2Api { * @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 listHorizontalPodAutoscalerForAllNamespaces(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 { - const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6449,8 +10866,20 @@ export class PromiseAutoscalingV2Api { * @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 listNamespacedHorizontalPodAutoscalerWithHttpInfo(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> { - const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6469,8 +10898,20 @@ export class PromiseAutoscalingV2Api { * @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 listNamespacedHorizontalPodAutoscaler(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 { - const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscaler(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6485,8 +10926,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6501,8 +10954,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6517,8 +10982,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6533,8 +11010,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -6544,8 +11033,20 @@ export class PromiseAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6555,8 +11056,20 @@ export class PromiseAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6566,8 +11079,20 @@ export class PromiseAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6577,8 +11102,20 @@ export class PromiseAutoscalingV2Api { * @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 readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -6592,8 +11129,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6607,8 +11156,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6622,8 +11183,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6637,8 +11210,20 @@ export class PromiseAutoscalingV2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6664,16 +11249,40 @@ export class PromiseBatchApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -6705,8 +11314,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6719,8 +11340,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6733,8 +11366,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6747,8 +11392,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -6771,8 +11428,20 @@ export class PromiseBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCronJobWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCronJobWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6795,8 +11464,20 @@ export class PromiseBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCronJob(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 { - const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCronJob(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6819,8 +11500,20 @@ export class PromiseBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedJobWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedJobWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6843,8 +11536,20 @@ export class PromiseBatchV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedJob(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 { - const result = this.api.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedJob(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -6860,8 +11565,20 @@ export class PromiseBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6877,8 +11594,20 @@ export class PromiseBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6894,8 +11623,20 @@ export class PromiseBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -6911,24 +11652,60 @@ export class PromiseBatchV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -6946,8 +11723,20 @@ export class PromiseBatchV1Api { * @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 listCronJobForAllNamespacesWithHttpInfo(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> { - const result = this.api.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6965,8 +11754,20 @@ export class PromiseBatchV1Api { * @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 listCronJobForAllNamespaces(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 { - const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -6984,8 +11785,20 @@ export class PromiseBatchV1Api { * @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 listJobForAllNamespacesWithHttpInfo(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> { - const result = this.api.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7003,8 +11816,20 @@ export class PromiseBatchV1Api { * @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 listJobForAllNamespaces(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 { - const result = this.api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7023,8 +11848,20 @@ export class PromiseBatchV1Api { * @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 listNamespacedCronJobWithHttpInfo(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> { - const result = this.api.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedCronJobWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7043,8 +11880,20 @@ export class PromiseBatchV1Api { * @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 listNamespacedCronJob(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 { - const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedCronJob(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7063,8 +11912,20 @@ export class PromiseBatchV1Api { * @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 listNamespacedJobWithHttpInfo(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> { - const result = this.api.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedJobWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7083,8 +11944,20 @@ export class PromiseBatchV1Api { * @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 listNamespacedJob(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 { - const result = this.api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedJob(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7099,8 +11972,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7115,8 +12000,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7131,8 +12028,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7147,8 +12056,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCronJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCronJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7163,8 +12084,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7179,8 +12112,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7195,8 +12140,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7211,8 +12168,20 @@ export class PromiseBatchV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7222,8 +12191,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7233,8 +12214,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJob(name, namespace, pretty, _options); + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCronJob(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7244,8 +12237,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7255,8 +12260,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, _options); + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7266,8 +12283,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedJobWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedJobWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7277,8 +12306,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedJob(name, namespace, pretty, _options); + public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedJob(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7288,8 +12329,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7299,8 +12352,20 @@ export class PromiseBatchV1Api { * @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 readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedJobStatus(name, namespace, pretty, _options); + public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedJobStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -7314,8 +12379,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7329,8 +12406,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7344,8 +12433,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7359,8 +12460,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7374,8 +12487,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7389,8 +12514,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7404,8 +12541,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7419,8 +12568,20 @@ export class PromiseBatchV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7446,16 +12607,40 @@ export class PromiseCertificatesApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -7486,8 +12671,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7499,8 +12696,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7515,8 +12724,20 @@ export class PromiseCertificatesV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -7531,8 +12752,20 @@ export class PromiseCertificatesV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -7554,8 +12787,20 @@ export class PromiseCertificatesV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCertificateSigningRequestWithHttpInfo(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> { - const result = this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCertificateSigningRequestWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -7577,24 +12822,60 @@ export class PromiseCertificatesV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCertificateSigningRequest(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 { - const result = this.api.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCertificateSigningRequest(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -7612,8 +12893,20 @@ export class PromiseCertificatesV1Api { * @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 listCertificateSigningRequestWithHttpInfo(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> { - const result = this.api.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCertificateSigningRequestWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7631,8 +12924,20 @@ export class PromiseCertificatesV1Api { * @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 listCertificateSigningRequest(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 { - const result = this.api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCertificateSigningRequest(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -7646,8 +12951,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7661,8 +12978,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequest(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequest(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7676,8 +13005,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestApprovalWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestApprovalWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7691,8 +13032,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestApproval(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestApproval(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7706,8 +13059,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7721,8 +13086,20 @@ export class PromiseCertificatesV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCertificateSigningRequestStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCertificateSigningRequestStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -7731,8 +13108,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCertificateSigningRequestWithHttpInfo(name, pretty, _options); + public readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequestWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -7741,8 +13130,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequest(name, pretty, _options); + public readCertificateSigningRequest(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequest(name, pretty, observableOptions); return result.toPromise(); } @@ -7751,8 +13152,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, _options); + public readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -7761,8 +13174,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequestApproval(name, pretty, _options); + public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequestApproval(name, pretty, observableOptions); return result.toPromise(); } @@ -7771,8 +13196,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, _options); + public readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -7781,8 +13218,20 @@ export class PromiseCertificatesV1Api { * @param name name of the CertificateSigningRequest * @param [pretty] If \'true\', 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 readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequestStatus(name, pretty, _options); + public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCertificateSigningRequestStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -7795,8 +13244,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7809,8 +13270,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7823,8 +13296,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7837,8 +13322,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7851,8 +13348,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7865,8 +13374,20 @@ export class PromiseCertificatesV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7897,8 +13418,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterTrustBundleWithHttpInfo(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterTrustBundleWithHttpInfo(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterTrustBundleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7910,8 +13443,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterTrustBundle(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterTrustBundle(body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterTrustBundle(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -7926,8 +13471,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterTrustBundleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterTrustBundleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterTrustBundleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -7942,8 +13499,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterTrustBundle(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterTrustBundle(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterTrustBundle(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -7965,8 +13534,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterTrustBundleWithHttpInfo(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> { - const result = this.api.deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterTrustBundleWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -7988,24 +13569,60 @@ export class PromiseCertificatesV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterTrustBundle(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -8023,8 +13640,20 @@ export class PromiseCertificatesV1alpha1Api { * @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 listClusterTrustBundleWithHttpInfo(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> { - const result = this.api.listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterTrustBundleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8042,8 +13671,20 @@ export class PromiseCertificatesV1alpha1Api { * @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 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 { - const result = this.api.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterTrustBundle(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterTrustBundle(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8057,8 +13698,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterTrustBundleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterTrustBundleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8072,8 +13725,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterTrustBundle(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8082,8 +13747,20 @@ export class PromiseCertificatesV1alpha1Api { * @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 readClusterTrustBundleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readClusterTrustBundleWithHttpInfo(name, pretty, _options); + public readClusterTrustBundleWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterTrustBundleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -8092,8 +13769,20 @@ export class PromiseCertificatesV1alpha1Api { * @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 readClusterTrustBundle(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readClusterTrustBundle(name, pretty, _options); + public readClusterTrustBundle(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterTrustBundle(name, pretty, observableOptions); return result.toPromise(); } @@ -8106,8 +13795,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterTrustBundleWithHttpInfo(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterTrustBundleWithHttpInfo(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterTrustBundleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8120,8 +13821,20 @@ export class PromiseCertificatesV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterTrustBundle(name: string, body: V1alpha1ClusterTrustBundle, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterTrustBundle(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8147,16 +13860,40 @@ export class PromiseCoordinationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -8188,8 +13925,20 @@ export class PromiseCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8202,8 +13951,20 @@ export class PromiseCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8226,8 +13987,20 @@ export class PromiseCoordinationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLeaseWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLeaseWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -8250,8 +14023,20 @@ export class PromiseCoordinationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLease(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 { - const result = this.api.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLease(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -8267,8 +14052,20 @@ export class PromiseCoordinationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -8284,24 +14081,60 @@ export class PromiseCoordinationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -8319,8 +14152,20 @@ export class PromiseCoordinationV1Api { * @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 listLeaseForAllNamespacesWithHttpInfo(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> { - const result = this.api.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8338,8 +14183,20 @@ export class PromiseCoordinationV1Api { * @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 listLeaseForAllNamespaces(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 { - const result = this.api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8358,8 +14215,20 @@ export class PromiseCoordinationV1Api { * @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 listNamespacedLeaseWithHttpInfo(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> { - const result = this.api.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLeaseWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8378,8 +14247,20 @@ export class PromiseCoordinationV1Api { * @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 listNamespacedLease(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 { - const result = this.api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLease(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8394,8 +14275,20 @@ export class PromiseCoordinationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8410,8 +14303,20 @@ export class PromiseCoordinationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8421,8 +14326,20 @@ export class PromiseCoordinationV1Api { * @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 readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8432,8 +14349,20 @@ export class PromiseCoordinationV1Api { * @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 readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedLease(name, namespace, pretty, _options); + public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLease(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8447,8 +14376,20 @@ export class PromiseCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8462,8 +14403,20 @@ export class PromiseCoordinationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8495,8 +14448,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseCandidateWithHttpInfo(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLeaseCandidateWithHttpInfo(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLeaseCandidateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8509,8 +14474,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLeaseCandidate(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLeaseCandidate(namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLeaseCandidate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8533,8 +14510,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLeaseCandidateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -8557,8 +14546,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLeaseCandidate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -8574,8 +14575,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -8591,24 +14604,60 @@ export class PromiseCoordinationV1alpha2Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLeaseCandidate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -8626,8 +14675,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 listLeaseCandidateForAllNamespacesWithHttpInfo(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> { - const result = this.api.listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8645,8 +14706,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 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 { - const result = this.api.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLeaseCandidateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLeaseCandidateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8665,8 +14738,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 listNamespacedLeaseCandidateWithHttpInfo(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> { - const result = this.api.listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLeaseCandidateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8685,8 +14770,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 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 { - const result = this.api.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLeaseCandidate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -8701,8 +14798,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8717,8 +14826,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLeaseCandidate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLeaseCandidate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -8728,8 +14849,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 readNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLeaseCandidateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8739,8 +14872,20 @@ export class PromiseCoordinationV1alpha2Api { * @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 readNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedLeaseCandidate(name, namespace, pretty, _options); + public readNamespacedLeaseCandidate(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLeaseCandidate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -8754,8 +14899,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLeaseCandidateWithHttpInfo(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLeaseCandidateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8769,8 +14926,20 @@ export class PromiseCoordinationV1alpha2Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLeaseCandidate(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLeaseCandidate(name: string, namespace: string, body: V1alpha2LeaseCandidate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLeaseCandidate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -8796,16 +14965,40 @@ export class PromiseCoreApi { /** * get available API versions */ - public getAPIVersionsWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIVersionsWithHttpInfo(_options); + public getAPIVersionsWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIVersionsWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Promise { - const result = this.api.getAPIVersions(_options); + public getAPIVersions(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIVersions(observableOptions); return result.toPromise(); } @@ -8834,8 +15027,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -8845,8 +15050,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedPodProxy(name, namespace, path, _options); + public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -8857,8 +15074,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -8869,8 +15098,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -8880,8 +15121,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -8891,8 +15144,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedServiceProxy(name, namespace, path, _options); + public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -8903,8 +15168,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -8915,8 +15192,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -8925,8 +15214,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNodeProxyWithHttpInfo(name, path, _options); + public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -8935,8 +15236,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNodeProxy(name, path, _options); + public connectDeleteNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -8946,8 +15259,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -8957,8 +15282,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNodeProxyWithPath(name, path, path2, _options); + public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectDeleteNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -8972,8 +15309,20 @@ export class PromiseCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -8987,8 +15336,20 @@ export class PromiseCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9003,8 +15364,20 @@ export class PromiseCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9019,8 +15392,20 @@ export class PromiseCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9030,8 +15415,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options); + public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -9041,8 +15438,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodPortforward(name, namespace, ports, _options); + public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodPortforward(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -9052,8 +15461,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9063,8 +15484,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodProxy(name, namespace, path, _options); + public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9075,8 +15508,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9087,8 +15532,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9098,8 +15555,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9109,8 +15578,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedServiceProxy(name, namespace, path, _options); + public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9121,8 +15602,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9133,8 +15626,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9143,8 +15648,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNodeProxyWithHttpInfo(name, path, _options); + public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9153,8 +15670,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNodeProxy(name, path, _options); + public connectGetNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9164,8 +15693,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9175,8 +15716,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNodeProxyWithPath(name, path, path2, _options); + public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectGetNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9186,8 +15739,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9197,8 +15762,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedPodProxy(name, namespace, path, _options); + public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9209,8 +15786,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9221,8 +15810,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9232,8 +15833,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9243,8 +15856,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedServiceProxy(name, namespace, path, _options); + public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9255,8 +15880,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9267,8 +15904,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9277,8 +15926,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNodeProxyWithHttpInfo(name, path, _options); + public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9287,8 +15948,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNodeProxy(name, path, _options); + public connectHeadNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9298,8 +15971,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9309,8 +15994,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNodeProxyWithPath(name, path, path2, _options); + public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectHeadNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9320,8 +16017,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9331,8 +16040,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedPodProxy(name, namespace, path, _options); + public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9343,8 +16064,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9355,8 +16088,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9366,8 +16111,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9377,8 +16134,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedServiceProxy(name, namespace, path, _options); + public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9389,8 +16158,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9401,8 +16182,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9411,8 +16204,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNodeProxyWithHttpInfo(name, path, _options); + public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9421,8 +16226,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNodeProxy(name, path, _options); + public connectOptionsNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9432,8 +16249,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9443,8 +16272,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNodeProxyWithPath(name, path, path2, _options); + public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectOptionsNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9454,8 +16295,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9465,8 +16318,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedPodProxy(name, namespace, path, _options); + public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9477,8 +16342,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9489,8 +16366,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9500,8 +16389,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9511,8 +16412,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedServiceProxy(name, namespace, path, _options); + public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9523,8 +16436,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9535,8 +16460,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9545,8 +16482,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNodeProxyWithHttpInfo(name, path, _options); + public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9555,8 +16504,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNodeProxy(name, path, _options); + public connectPatchNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9566,8 +16527,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9577,8 +16550,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNodeProxyWithPath(name, path, path2, _options); + public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPatchNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9592,8 +16577,20 @@ export class PromiseCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9607,8 +16604,20 @@ export class PromiseCoreV1Api { * @param [stdout] Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param [tty] TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9623,8 +16632,20 @@ export class PromiseCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9639,8 +16660,20 @@ export class PromiseCoreV1Api { * @param [stdout] Redirect the standard output stream of the pod for this call. * @param [tty] TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, observableOptions); return result.toPromise(); } @@ -9650,8 +16683,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options); + public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -9661,8 +16706,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [ports] List of ports to forward Required when using WebSockets */ - public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodPortforward(name, namespace, ports, _options); + public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodPortforward(name, namespace, ports, observableOptions); return result.toPromise(); } @@ -9672,8 +16729,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9683,8 +16752,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodProxy(name, namespace, path, _options); + public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9695,8 +16776,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9707,8 +16800,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9718,8 +16823,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9729,8 +16846,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedServiceProxy(name, namespace, path, _options); + public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9741,8 +16870,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9753,8 +16894,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9763,8 +16916,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNodeProxyWithHttpInfo(name, path, _options); + public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9773,8 +16938,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNodeProxy(name, path, _options); + public connectPostNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9784,8 +16961,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9795,8 +16984,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNodeProxyWithPath(name, path, path2, _options); + public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPostNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9806,8 +17007,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9817,8 +17030,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedPodProxy(name, namespace, path, _options); + public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedPodProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9829,8 +17054,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9841,8 +17078,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9852,8 +17101,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9863,8 +17124,20 @@ export class PromiseCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param [path] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedServiceProxy(name, namespace, path, _options); + public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedServiceProxy(name, namespace, path, observableOptions); return result.toPromise(); } @@ -9875,8 +17148,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9887,8 +17172,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, observableOptions); return result.toPromise(); } @@ -9897,8 +17194,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNodeProxyWithHttpInfo(name, path, _options); + public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNodeProxyWithHttpInfo(name, path, observableOptions); return result.toPromise(); } @@ -9907,8 +17216,20 @@ export class PromiseCoreV1Api { * @param name name of the NodeProxyOptions * @param [path] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNodeProxy(name, path, _options); + public connectPutNodeProxy(name: string, path?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNodeProxy(name, path, observableOptions); return result.toPromise(); } @@ -9918,8 +17239,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { - const result = this.api.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, observableOptions); return result.toPromise(); } @@ -9929,8 +17262,20 @@ export class PromiseCoreV1Api { * @param path path to the resource * @param [path2] Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNodeProxyWithPath(name, path, path2, _options); + public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.connectPutNodeProxyWithPath(name, path, path2, observableOptions); return result.toPromise(); } @@ -9942,8 +17287,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9955,8 +17312,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespace(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -9969,8 +17338,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9983,8 +17364,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedBinding(namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -9997,8 +17390,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10011,8 +17416,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10025,8 +17442,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10039,8 +17468,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10053,8 +17494,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10067,8 +17520,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10081,8 +17546,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10095,8 +17572,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10109,8 +17598,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10123,8 +17624,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10137,8 +17650,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10151,8 +17676,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10166,8 +17703,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10181,8 +17730,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10196,8 +17757,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10211,8 +17784,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10225,8 +17810,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10239,8 +17836,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10253,8 +17862,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10267,8 +17888,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10281,8 +17914,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10295,8 +17940,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10309,8 +17966,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10323,8 +17992,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10337,8 +18018,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10351,8 +18044,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10365,8 +18070,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10379,8 +18096,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10394,8 +18123,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10409,8 +18150,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -10422,8 +18175,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10435,8 +18200,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNode(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNode(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10448,8 +18225,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10461,8 +18250,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPersistentVolume(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -10485,8 +18286,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedConfigMapWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedConfigMapWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10509,8 +18322,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedConfigMap(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 { - const result = this.api.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedConfigMap(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10533,8 +18358,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointsWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpointsWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10557,8 +18394,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpoints(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 { - const result = this.api.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpoints(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10581,8 +18430,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEventWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEventWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10605,8 +18466,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEvent(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 { - const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEvent(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10629,8 +18502,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLimitRangeWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLimitRangeWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10653,8 +18538,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedLimitRange(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 { - const result = this.api.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedLimitRange(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10677,8 +18574,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10701,8 +18610,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPersistentVolumeClaim(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 { - const result = this.api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPersistentVolumeClaim(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10725,8 +18646,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10749,8 +18682,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPod(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 { - const result = this.api.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPod(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10773,8 +18718,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodTemplateWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10797,8 +18754,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodTemplate(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 { - const result = this.api.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodTemplate(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10821,8 +18790,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicationControllerWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10845,8 +18826,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedReplicationController(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 { - const result = this.api.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedReplicationController(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10869,8 +18862,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceQuotaWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10893,8 +18898,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceQuota(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 { - const result = this.api.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceQuota(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10917,8 +18934,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedSecretWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedSecretWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10941,8 +18970,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedSecret(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 { - const result = this.api.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedSecret(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10965,8 +19006,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedServiceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -10989,8 +19042,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedService(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 { - const result = this.api.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedService(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedService(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11013,8 +19078,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceAccountWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedServiceAccountWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11037,8 +19114,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedServiceAccount(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 { - const result = this.api.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedServiceAccount(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11060,8 +19149,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNodeWithHttpInfo(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> { - const result = this.api.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNodeWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11083,8 +19184,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNode(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 { - const result = this.api.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNode(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11106,8 +19219,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPersistentVolumeWithHttpInfo(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> { - const result = this.api.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPersistentVolumeWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11129,8 +19254,20 @@ export class PromiseCoreV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPersistentVolume(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 { - const result = this.api.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPersistentVolume(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -11145,8 +19282,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11161,8 +19310,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11178,8 +19339,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11195,8 +19368,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11212,8 +19397,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11229,8 +19426,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11246,8 +19455,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11263,8 +19484,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11280,8 +19513,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11297,8 +19542,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11314,8 +19571,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11331,8 +19600,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11348,8 +19629,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11365,8 +19658,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11382,8 +19687,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11399,8 +19716,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11416,8 +19745,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11433,8 +19774,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11450,8 +19803,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11467,8 +19832,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11484,8 +19861,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11501,8 +19890,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11518,8 +19919,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11535,8 +19948,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11552,8 +19977,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11569,8 +20006,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11585,8 +20034,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11601,8 +20062,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11617,8 +20090,20 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -11633,24 +20118,60 @@ export class PromiseCoreV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -11668,8 +20189,20 @@ export class PromiseCoreV1Api { * @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 listComponentStatusWithHttpInfo(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> { - const result = this.api.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listComponentStatusWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11687,8 +20220,20 @@ export class PromiseCoreV1Api { * @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 listComponentStatus(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 { - const result = this.api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listComponentStatus(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11706,8 +20251,20 @@ export class PromiseCoreV1Api { * @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 listConfigMapForAllNamespacesWithHttpInfo(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> { - const result = this.api.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11725,8 +20282,20 @@ export class PromiseCoreV1Api { * @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 listConfigMapForAllNamespaces(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 { - const result = this.api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listConfigMapForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11744,8 +20313,20 @@ export class PromiseCoreV1Api { * @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 listEndpointsForAllNamespacesWithHttpInfo(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> { - const result = this.api.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11763,8 +20344,20 @@ export class PromiseCoreV1Api { * @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 listEndpointsForAllNamespaces(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 { - const result = this.api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointsForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11782,8 +20375,20 @@ export class PromiseCoreV1Api { * @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 listEventForAllNamespacesWithHttpInfo(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> { - const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11801,8 +20406,20 @@ export class PromiseCoreV1Api { * @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 listEventForAllNamespaces(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 { - const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11820,8 +20437,20 @@ export class PromiseCoreV1Api { * @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 listLimitRangeForAllNamespacesWithHttpInfo(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> { - const result = this.api.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11839,8 +20468,20 @@ export class PromiseCoreV1Api { * @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 listLimitRangeForAllNamespaces(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 { - const result = this.api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listLimitRangeForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11858,8 +20499,20 @@ export class PromiseCoreV1Api { * @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 listNamespaceWithHttpInfo(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> { - const result = this.api.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespaceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11877,8 +20530,20 @@ export class PromiseCoreV1Api { * @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 listNamespace(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 { - const result = this.api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespace(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11897,8 +20562,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedConfigMapWithHttpInfo(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> { - const result = this.api.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedConfigMapWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11917,8 +20594,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedConfigMap(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 { - const result = this.api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedConfigMap(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11937,8 +20626,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedEndpointsWithHttpInfo(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> { - const result = this.api.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpointsWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11957,8 +20658,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedEndpoints(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 { - const result = this.api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpoints(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11977,8 +20690,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedEventWithHttpInfo(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> { - const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEventWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -11997,8 +20722,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedEvent(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 { - const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEvent(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12017,8 +20754,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedLimitRangeWithHttpInfo(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> { - const result = this.api.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLimitRangeWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12037,8 +20786,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedLimitRange(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 { - const result = this.api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedLimitRange(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12057,8 +20818,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPersistentVolumeClaimWithHttpInfo(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> { - const result = this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPersistentVolumeClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12077,8 +20850,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPersistentVolumeClaim(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 { - const result = this.api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPersistentVolumeClaim(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12097,8 +20882,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPodWithHttpInfo(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> { - const result = this.api.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12117,8 +20914,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPod(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 { - const result = this.api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPod(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12137,8 +20946,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPodTemplateWithHttpInfo(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> { - const result = this.api.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12157,8 +20978,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedPodTemplate(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 { - const result = this.api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodTemplate(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12177,8 +21010,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedReplicationControllerWithHttpInfo(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> { - const result = this.api.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicationControllerWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12197,8 +21042,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedReplicationController(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 { - const result = this.api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedReplicationController(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12217,8 +21074,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedResourceQuotaWithHttpInfo(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> { - const result = this.api.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceQuotaWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12237,8 +21106,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedResourceQuota(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 { - const result = this.api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceQuota(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12257,8 +21138,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedSecretWithHttpInfo(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> { - const result = this.api.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedSecretWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12277,8 +21170,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedSecret(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 { - const result = this.api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedSecret(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12297,8 +21202,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedServiceWithHttpInfo(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> { - const result = this.api.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedServiceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12317,8 +21234,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedService(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 { - const result = this.api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedService(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12337,8 +21266,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedServiceAccountWithHttpInfo(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> { - const result = this.api.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedServiceAccountWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12357,8 +21298,20 @@ export class PromiseCoreV1Api { * @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 listNamespacedServiceAccount(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 { - const result = this.api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedServiceAccount(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12376,8 +21329,20 @@ export class PromiseCoreV1Api { * @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 listNodeWithHttpInfo(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> { - const result = this.api.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12395,8 +21360,20 @@ export class PromiseCoreV1Api { * @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 listNode(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 { - const result = this.api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12414,8 +21391,20 @@ export class PromiseCoreV1Api { * @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 listPersistentVolumeWithHttpInfo(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> { - const result = this.api.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolumeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12433,8 +21422,20 @@ export class PromiseCoreV1Api { * @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 listPersistentVolume(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 { - const result = this.api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolume(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12452,8 +21453,20 @@ export class PromiseCoreV1Api { * @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 listPersistentVolumeClaimForAllNamespacesWithHttpInfo(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> { - const result = this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12471,8 +21484,20 @@ export class PromiseCoreV1Api { * @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 listPersistentVolumeClaimForAllNamespaces(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 { - const result = this.api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12490,8 +21515,20 @@ export class PromiseCoreV1Api { * @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 listPodForAllNamespacesWithHttpInfo(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> { - const result = this.api.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12509,8 +21546,20 @@ export class PromiseCoreV1Api { * @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 listPodForAllNamespaces(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 { - const result = this.api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12528,8 +21577,20 @@ export class PromiseCoreV1Api { * @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 listPodTemplateForAllNamespacesWithHttpInfo(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> { - const result = this.api.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12547,8 +21608,20 @@ export class PromiseCoreV1Api { * @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 listPodTemplateForAllNamespaces(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 { - const result = this.api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12566,8 +21639,20 @@ export class PromiseCoreV1Api { * @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 listReplicationControllerForAllNamespacesWithHttpInfo(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> { - const result = this.api.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12585,8 +21670,20 @@ export class PromiseCoreV1Api { * @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 listReplicationControllerForAllNamespaces(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 { - const result = this.api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listReplicationControllerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12604,8 +21701,20 @@ export class PromiseCoreV1Api { * @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 listResourceQuotaForAllNamespacesWithHttpInfo(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> { - const result = this.api.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12623,8 +21732,20 @@ export class PromiseCoreV1Api { * @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 listResourceQuotaForAllNamespaces(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 { - const result = this.api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceQuotaForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12642,8 +21763,20 @@ export class PromiseCoreV1Api { * @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 listSecretForAllNamespacesWithHttpInfo(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> { - const result = this.api.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12661,8 +21794,20 @@ export class PromiseCoreV1Api { * @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 listSecretForAllNamespaces(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 { - const result = this.api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listSecretForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12680,8 +21825,20 @@ export class PromiseCoreV1Api { * @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 listServiceAccountForAllNamespacesWithHttpInfo(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> { - const result = this.api.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12699,8 +21856,20 @@ export class PromiseCoreV1Api { * @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 listServiceAccountForAllNamespaces(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 { - const result = this.api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceAccountForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12718,8 +21887,20 @@ export class PromiseCoreV1Api { * @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 listServiceForAllNamespacesWithHttpInfo(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> { - const result = this.api.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12737,8 +21918,20 @@ export class PromiseCoreV1Api { * @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 listServiceForAllNamespaces(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 { - const result = this.api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -12752,8 +21945,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespaceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12767,8 +21972,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespace(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespace(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12782,8 +21999,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12797,8 +22026,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespaceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespaceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12813,8 +22054,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12829,8 +22082,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12845,8 +22110,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12861,8 +22138,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12877,8 +22166,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12893,8 +22194,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12909,8 +22222,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12925,8 +22250,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12941,8 +22278,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12957,8 +22306,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12973,8 +22334,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -12989,8 +22362,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13005,8 +22390,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13021,8 +22418,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13037,8 +22446,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13053,8 +22474,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13069,8 +22502,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13085,8 +22530,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodResize(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodResize(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13101,8 +22558,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13117,8 +22586,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13133,8 +22614,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13149,8 +22642,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13165,8 +22670,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13181,8 +22698,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13197,8 +22726,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13213,8 +22754,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13229,8 +22782,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13245,8 +22810,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13261,8 +22838,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13277,8 +22866,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13293,8 +22894,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13309,8 +22922,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13325,8 +22950,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedSecretWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedSecretWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13341,8 +22978,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13357,8 +23006,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13373,8 +23034,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13389,8 +23062,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13405,8 +23090,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceAccount(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceAccount(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13421,8 +23118,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13437,8 +23146,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13452,8 +23173,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13467,8 +23200,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13482,8 +23227,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13497,8 +23254,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNodeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNodeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13512,8 +23281,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13527,8 +23308,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolume(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolume(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13542,8 +23335,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13557,8 +23362,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPersistentVolumeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPersistentVolumeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -13567,8 +23384,20 @@ export class PromiseCoreV1Api { * @param name name of the ComponentStatus * @param [pretty] If \'true\', 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 readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readComponentStatusWithHttpInfo(name, pretty, _options); + public readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readComponentStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13577,8 +23406,20 @@ export class PromiseCoreV1Api { * @param name name of the ComponentStatus * @param [pretty] If \'true\', 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 readComponentStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readComponentStatus(name, pretty, _options); + public readComponentStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readComponentStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -13587,8 +23428,20 @@ export class PromiseCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespaceWithHttpInfo(name, pretty, _options); + public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespaceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13597,8 +23450,20 @@ export class PromiseCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespace(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespace(name, pretty, _options); + public readNamespace(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespace(name, pretty, observableOptions); return result.toPromise(); } @@ -13607,8 +23472,20 @@ export class PromiseCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespaceStatusWithHttpInfo(name, pretty, _options); + public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespaceStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -13617,8 +23494,20 @@ export class PromiseCoreV1Api { * @param name name of the Namespace * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespaceStatus(name, pretty, _options); + public readNamespaceStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespaceStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -13628,8 +23517,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13639,8 +23540,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedConfigMap(name, namespace, pretty, _options); + public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedConfigMap(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13650,8 +23563,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13661,8 +23586,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEndpoints(name, namespace, pretty, _options); + public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEndpoints(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13672,8 +23609,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13683,8 +23632,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEvent(name, namespace, pretty, _options); + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEvent(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13694,8 +23655,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13705,8 +23678,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedLimitRange(name, namespace, pretty, _options); + public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedLimitRange(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13716,8 +23701,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13727,8 +23724,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPersistentVolumeClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13738,8 +23747,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13749,8 +23770,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _options); + public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13760,8 +23793,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13771,8 +23816,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPod(name, namespace, pretty, _options); + public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPod(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13782,8 +23839,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13793,8 +23862,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _options); + public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodEphemeralcontainers(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13813,8 +23894,20 @@ export class PromiseCoreV1Api { * @param [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". * @param [timestamps] If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _options); + public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, observableOptions); return result.toPromise(); } @@ -13833,8 +23926,20 @@ export class PromiseCoreV1Api { * @param [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime. Note that when \"TailLines\" is specified, \"Stream\" can only be set to nil or \"All\". * @param [timestamps] If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, _options); + public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, stream?: string, tailLines?: number, timestamps?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, stream, tailLines, timestamps, observableOptions); return result.toPromise(); } @@ -13844,8 +23949,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodResizeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodResizeWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodResizeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodResizeWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13855,8 +23972,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodResize(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodResize(name, namespace, pretty, _options); + public readNamespacedPodResize(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodResize(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13866,8 +23995,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13877,8 +24018,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodStatus(name, namespace, pretty, _options); + public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13888,8 +24041,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13899,8 +24064,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodTemplate(name, namespace, pretty, _options); + public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13910,8 +24087,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13921,8 +24110,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationController(name, namespace, pretty, _options); + public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationController(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13932,8 +24133,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13943,8 +24156,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationControllerScale(name, namespace, pretty, _options); + public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationControllerScale(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13954,8 +24179,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13965,8 +24202,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationControllerStatus(name, namespace, pretty, _options); + public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedReplicationControllerStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13976,8 +24225,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13987,8 +24248,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceQuota(name, namespace, pretty, _options); + public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceQuota(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -13998,8 +24271,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14009,8 +24294,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceQuotaStatus(name, namespace, pretty, _options); + public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceQuotaStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14020,8 +24317,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedSecretWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedSecretWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14031,8 +24340,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedSecret(name, namespace, pretty, _options); + public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedSecret(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14042,8 +24363,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedServiceWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedServiceWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14053,8 +24386,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedService(name, namespace, pretty, _options); + public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedService(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14064,8 +24409,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14075,8 +24432,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedServiceAccount(name, namespace, pretty, _options); + public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedServiceAccount(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14086,8 +24455,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14097,8 +24478,20 @@ export class PromiseCoreV1Api { * @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 readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedServiceStatus(name, namespace, pretty, _options); + public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedServiceStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -14107,8 +24500,20 @@ export class PromiseCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNodeWithHttpInfo(name, pretty, _options); + public readNodeWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNodeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -14117,8 +24522,20 @@ export class PromiseCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNode(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNode(name, pretty, _options); + public readNode(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNode(name, pretty, observableOptions); return result.toPromise(); } @@ -14127,8 +24544,20 @@ export class PromiseCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNodeStatusWithHttpInfo(name, pretty, _options); + public readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNodeStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -14137,8 +24566,20 @@ export class PromiseCoreV1Api { * @param name name of the Node * @param [pretty] If \'true\', 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 readNodeStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNodeStatus(name, pretty, _options); + public readNodeStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNodeStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -14147,8 +24588,20 @@ export class PromiseCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readPersistentVolumeWithHttpInfo(name, pretty, _options); + public readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPersistentVolumeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -14157,8 +24610,20 @@ export class PromiseCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPersistentVolume(name, pretty, _options); + public readPersistentVolume(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPersistentVolume(name, pretty, observableOptions); return result.toPromise(); } @@ -14167,8 +24632,20 @@ export class PromiseCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readPersistentVolumeStatusWithHttpInfo(name, pretty, _options); + public readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPersistentVolumeStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -14177,8 +24654,20 @@ export class PromiseCoreV1Api { * @param name name of the PersistentVolume * @param [pretty] If \'true\', 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 readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPersistentVolumeStatus(name, pretty, _options); + public readPersistentVolumeStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPersistentVolumeStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -14191,8 +24680,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14205,8 +24706,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespace(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14219,8 +24732,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -14233,8 +24758,20 @@ export class PromiseCoreV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 [pretty] If \'true\', 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 replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, _options); + public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, fieldValidation?: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespaceFinalize(name, body, dryRun, fieldManager, fieldValidation, pretty, observableOptions); return result.toPromise(); } @@ -14247,8 +24784,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14261,8 +24810,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14276,8 +24837,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14291,8 +24864,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14306,8 +24891,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14321,8 +24918,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14336,8 +24945,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14351,8 +24972,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14366,8 +24999,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14381,8 +25026,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14396,8 +25053,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14411,8 +25080,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14426,8 +25107,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14441,8 +25134,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14456,8 +25161,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14471,8 +25188,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14486,8 +25215,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14501,8 +25242,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14516,8 +25269,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodResizeWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodResizeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14531,8 +25296,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodResize(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodResize(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodResize(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14546,8 +25323,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14561,8 +25350,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14576,8 +25377,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14591,8 +25404,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14606,8 +25431,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14621,8 +25458,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14636,8 +25485,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14651,8 +25512,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14666,8 +25539,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14681,8 +25566,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14696,8 +25593,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14711,8 +25620,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14726,8 +25647,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14741,8 +25674,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14756,8 +25701,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14771,8 +25728,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14786,8 +25755,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14801,8 +25782,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14816,8 +25809,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14831,8 +25836,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14846,8 +25863,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14861,8 +25890,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14875,8 +25916,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14889,8 +25942,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNode(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14903,8 +25968,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14917,8 +25994,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14931,8 +26020,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14945,8 +26046,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14959,8 +26072,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -14973,8 +26098,20 @@ export class PromiseCoreV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15008,8 +26145,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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. (optional) */ - public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15024,8 +26173,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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. (optional) */ - public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15041,8 +26202,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15058,8 +26231,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15075,8 +26260,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15092,8 +26289,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteClusterCustomObject(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteClusterCustomObject(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15110,8 +26319,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15128,8 +26349,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteCollectionClusterCustomObject(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteCollectionClusterCustomObject(group: string, version: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterCustomObject(group, version, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15148,8 +26381,20 @@ export class PromiseCustomObjectsApi { * @param [fieldSelector] A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param [body] */ - public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _options); + public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, observableOptions); return result.toPromise(); } @@ -15168,8 +26413,20 @@ export class PromiseCustomObjectsApi { * @param [fieldSelector] A selector to restrict the list of returned objects by their fields. Defaults to everything. * @param [body] */ - public deleteCollectionNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, _options); + public deleteCollectionNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, labelSelector?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, fieldSelector?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, labelSelector, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, fieldSelector, body, observableOptions); return result.toPromise(); } @@ -15186,8 +26443,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15204,8 +26473,20 @@ export class PromiseCustomObjectsApi { * @param [dryRun] When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 [body] */ - public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, observableOptions); return result.toPromise(); } @@ -15214,8 +26495,20 @@ export class PromiseCustomObjectsApi { * @param group The custom resource\'s group name * @param version The custom resource\'s version */ - public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(group, version, _options); + public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(group, version, observableOptions); return result.toPromise(); } @@ -15224,8 +26517,20 @@ export class PromiseCustomObjectsApi { * @param group The custom resource\'s group name * @param version The custom resource\'s version */ - public getAPIResources(group: string, version: string, _options?: Configuration): Promise { - const result = this.api.getAPIResources(group, version, _options); + public getAPIResources(group: string, version: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(group, version, observableOptions); return result.toPromise(); } @@ -15236,8 +26541,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getClusterCustomObjectWithHttpInfo(group, version, plural, name, _options); + public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObjectWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15248,8 +26565,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getClusterCustomObject(group, version, plural, name, _options); + public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObject(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15260,8 +26589,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, _options); + public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15272,8 +26613,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getClusterCustomObjectScale(group, version, plural, name, _options); + public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObjectScale(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15284,8 +26637,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, _options); + public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15296,8 +26661,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getClusterCustomObjectStatus(group, version, plural, name, _options); + public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getClusterCustomObjectStatus(group, version, plural, name, observableOptions); return result.toPromise(); } @@ -15309,8 +26686,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15322,8 +26711,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getNamespacedCustomObject(group, version, namespace, plural, name, _options); + public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObject(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15335,8 +26736,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15348,8 +26761,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObjectScale(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15361,8 +26786,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { - const result = this.api.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15374,8 +26811,20 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, observableOptions); return result.toPromise(); } @@ -15395,8 +26844,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { - const result = this.api.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15416,8 +26877,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15437,8 +26910,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listCustomObjectForAllNamespacesWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { - const result = this.api.listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listCustomObjectForAllNamespacesWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCustomObjectForAllNamespacesWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15458,8 +26943,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listCustomObjectForAllNamespaces(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCustomObjectForAllNamespaces(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listCustomObjectForAllNamespaces(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCustomObjectForAllNamespaces(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15480,8 +26977,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { - const result = this.api.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15502,8 +27011,20 @@ export class PromiseCustomObjectsApi { * @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. */ - public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -15519,8 +27040,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15536,8 +27069,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15553,8 +27098,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15570,8 +27127,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15587,8 +27156,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15604,8 +27185,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15622,8 +27215,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15640,8 +27245,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15658,8 +27275,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15676,8 +27305,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15694,8 +27335,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15712,8 +27365,20 @@ export class PromiseCustomObjectsApi { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @param [force] Force is going to \"force\" 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 patchNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -15728,8 +27393,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15744,8 +27421,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15760,8 +27449,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15776,8 +27477,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15792,8 +27505,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15808,8 +27533,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15825,8 +27562,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15842,8 +27591,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15859,8 +27620,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15876,8 +27649,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15893,8 +27678,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15910,8 +27707,20 @@ export class PromiseCustomObjectsApi { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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. (optional) */ - public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15937,16 +27746,40 @@ export class PromiseDiscoveryApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -15978,8 +27811,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -15992,8 +27837,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16016,8 +27873,20 @@ export class PromiseDiscoveryV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointSliceWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16040,8 +27909,20 @@ export class PromiseDiscoveryV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEndpointSlice(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 { - const result = this.api.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEndpointSlice(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16057,8 +27938,20 @@ export class PromiseDiscoveryV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -16074,24 +27967,60 @@ export class PromiseDiscoveryV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -16109,8 +28038,20 @@ export class PromiseDiscoveryV1Api { * @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 listEndpointSliceForAllNamespacesWithHttpInfo(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> { - const result = this.api.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16128,8 +28069,20 @@ export class PromiseDiscoveryV1Api { * @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 listEndpointSliceForAllNamespaces(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 { - const result = this.api.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEndpointSliceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16148,8 +28101,20 @@ export class PromiseDiscoveryV1Api { * @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 listNamespacedEndpointSliceWithHttpInfo(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> { - const result = this.api.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpointSliceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16168,8 +28133,20 @@ export class PromiseDiscoveryV1Api { * @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 listNamespacedEndpointSlice(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 { - const result = this.api.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEndpointSlice(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16184,8 +28161,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16200,8 +28189,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEndpointSlice(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEndpointSlice(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16211,8 +28212,20 @@ export class PromiseDiscoveryV1Api { * @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 readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -16222,8 +28235,20 @@ export class PromiseDiscoveryV1Api { * @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 readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEndpointSlice(name, namespace, pretty, _options); + public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEndpointSlice(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -16237,8 +28262,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16252,8 +28289,20 @@ export class PromiseDiscoveryV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16279,16 +28328,40 @@ export class PromiseEventsApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -16320,8 +28393,20 @@ export class PromiseEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16334,8 +28419,20 @@ export class PromiseEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16358,8 +28455,20 @@ export class PromiseEventsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEventWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEventWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16382,8 +28491,20 @@ export class PromiseEventsV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedEvent(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 { - const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedEvent(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16399,8 +28520,20 @@ export class PromiseEventsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -16416,24 +28549,60 @@ export class PromiseEventsV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -16451,8 +28620,20 @@ export class PromiseEventsV1Api { * @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 listEventForAllNamespacesWithHttpInfo(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> { - const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16470,8 +28651,20 @@ export class PromiseEventsV1Api { * @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 listEventForAllNamespaces(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 { - const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16490,8 +28683,20 @@ export class PromiseEventsV1Api { * @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 listNamespacedEventWithHttpInfo(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> { - const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEventWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16510,8 +28715,20 @@ export class PromiseEventsV1Api { * @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 listNamespacedEvent(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 { - const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedEvent(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16526,8 +28743,20 @@ export class PromiseEventsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16542,8 +28771,20 @@ export class PromiseEventsV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16553,8 +28794,20 @@ export class PromiseEventsV1Api { * @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 readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -16564,8 +28817,20 @@ export class PromiseEventsV1Api { * @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 readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEvent(name, namespace, pretty, _options); + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedEvent(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -16579,8 +28844,20 @@ export class PromiseEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16594,8 +28871,20 @@ export class PromiseEventsV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16621,16 +28910,40 @@ export class PromiseFlowcontrolApiserverApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -16661,8 +28974,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createFlowSchemaWithHttpInfo(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createFlowSchemaWithHttpInfo(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16674,8 +28999,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createFlowSchema(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createFlowSchema(body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createFlowSchema(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16687,8 +29024,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityLevelConfigurationWithHttpInfo(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityLevelConfigurationWithHttpInfo(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16700,8 +29049,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityLevelConfiguration(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityLevelConfiguration(body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -16723,8 +29084,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionFlowSchemaWithHttpInfo(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> { - const result = this.api.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionFlowSchemaWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16746,8 +29119,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionFlowSchema(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 { - const result = this.api.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionFlowSchema(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16769,8 +29154,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityLevelConfigurationWithHttpInfo(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> { - const result = this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16792,8 +29189,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityLevelConfiguration(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 { - const result = this.api.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityLevelConfiguration(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -16808,8 +29217,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -16824,8 +29245,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -16840,8 +29273,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -16856,24 +29301,60 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -16891,8 +29372,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @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 listFlowSchemaWithHttpInfo(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> { - const result = this.api.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listFlowSchemaWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16910,8 +29403,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @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 listFlowSchema(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 { - const result = this.api.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listFlowSchema(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16929,8 +29434,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @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 listPriorityLevelConfigurationWithHttpInfo(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> { - const result = this.api.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityLevelConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16948,8 +29465,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @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 listPriorityLevelConfiguration(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 { - const result = this.api.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityLevelConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -16963,8 +29492,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchemaWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16978,8 +29519,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchema(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchema(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -16993,8 +29546,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchemaStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17008,8 +29573,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchFlowSchemaStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchFlowSchemaStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17023,8 +29600,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17038,8 +29627,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfiguration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17053,8 +29654,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfigurationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17068,8 +29681,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityLevelConfigurationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityLevelConfigurationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17078,8 +29703,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readFlowSchemaWithHttpInfo(name, pretty, _options); + public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readFlowSchemaWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17088,8 +29725,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchema(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readFlowSchema(name, pretty, _options); + public readFlowSchema(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readFlowSchema(name, pretty, observableOptions); return result.toPromise(); } @@ -17098,8 +29747,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readFlowSchemaStatusWithHttpInfo(name, pretty, _options); + public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readFlowSchemaStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17108,8 +29769,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the FlowSchema * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readFlowSchemaStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readFlowSchemaStatus(name, pretty, _options); + public readFlowSchemaStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readFlowSchemaStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -17118,8 +29791,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readPriorityLevelConfigurationWithHttpInfo(name, pretty, _options); + public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityLevelConfigurationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17128,8 +29813,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPriorityLevelConfiguration(name, pretty, _options); + public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityLevelConfiguration(name, pretty, observableOptions); return result.toPromise(); } @@ -17138,8 +29835,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, _options); + public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17148,8 +29857,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param name name of the PriorityLevelConfiguration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPriorityLevelConfigurationStatus(name, pretty, _options); + public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityLevelConfigurationStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -17162,8 +29883,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchemaWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17176,8 +29909,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchema(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchema(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17190,8 +29935,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17204,8 +29961,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceFlowSchemaStatus(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceFlowSchemaStatus(name: string, body: V1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17218,8 +29987,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17232,8 +30013,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfiguration(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfiguration(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17246,8 +30039,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17260,8 +30065,20 @@ export class PromiseFlowcontrolApiserverV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityLevelConfigurationStatus(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityLevelConfigurationStatus(name: string, body: V1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17287,16 +30104,40 @@ export class PromiseInternalApiserverApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -17327,8 +30168,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17340,8 +30193,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageVersion(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17363,8 +30228,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionWithHttpInfo(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> { - const result = this.api.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersionWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17386,8 +30263,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersion(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 { - const result = this.api.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersion(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17402,8 +30291,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -17418,24 +30319,60 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersion(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersion(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -17453,8 +30390,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @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 listStorageVersionWithHttpInfo(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> { - const result = this.api.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -17472,8 +30421,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @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 listStorageVersion(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 { - const result = this.api.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersion(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -17487,8 +30448,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17502,8 +30475,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersion(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersion(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17517,8 +30502,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17532,8 +30529,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -17542,8 +30551,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readStorageVersionWithHttpInfo(name, pretty, _options); + public readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17552,8 +30573,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersion(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readStorageVersion(name, pretty, _options); + public readStorageVersion(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersion(name, pretty, observableOptions); return result.toPromise(); } @@ -17562,8 +30595,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readStorageVersionStatusWithHttpInfo(name, pretty, _options); + public readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -17572,8 +30617,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param name name of the StorageVersion * @param [pretty] If \'true\', 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 readStorageVersionStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readStorageVersionStatus(name, pretty, _options); + public readStorageVersionStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -17586,8 +30643,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17600,8 +30669,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17614,8 +30695,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17628,8 +30721,20 @@ export class PromiseInternalApiserverV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17655,30 +30760,78 @@ export class PromiseLogsApi { /** * @param logpath path to the log */ - public logFileHandlerWithHttpInfo(logpath: string, _options?: Configuration): Promise> { - const result = this.api.logFileHandlerWithHttpInfo(logpath, _options); + public logFileHandlerWithHttpInfo(logpath: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.logFileHandlerWithHttpInfo(logpath, observableOptions); return result.toPromise(); } /** * @param logpath path to the log */ - public logFileHandler(logpath: string, _options?: Configuration): Promise { - const result = this.api.logFileHandler(logpath, _options); + public logFileHandler(logpath: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.logFileHandler(logpath, observableOptions); return result.toPromise(); } /** */ - public logFileListHandlerWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.logFileListHandlerWithHttpInfo(_options); + public logFileListHandlerWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.logFileListHandlerWithHttpInfo(observableOptions); return result.toPromise(); } /** */ - public logFileListHandler(_options?: Configuration): Promise { - const result = this.api.logFileListHandler(_options); + public logFileListHandler(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.logFileListHandler(observableOptions); return result.toPromise(); } @@ -17704,16 +30857,40 @@ export class PromiseNetworkingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -17744,8 +30921,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17757,8 +30946,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createIngressClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17771,8 +30972,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17785,8 +30998,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17799,8 +31024,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17813,8 +31050,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedNetworkPolicy(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedNetworkPolicy(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -17836,8 +31085,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionIngressClassWithHttpInfo(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> { - const result = this.api.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionIngressClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17859,8 +31120,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17883,8 +31156,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedIngressWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedIngressWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17907,8 +31192,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17931,8 +31228,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17955,8 +31264,20 @@ export class PromiseNetworkingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -17971,8 +31292,20 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -17987,8 +31320,20 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18004,8 +31349,20 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18021,8 +31378,20 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18038,8 +31407,20 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18055,24 +31436,60 @@ export class PromiseNetworkingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -18090,8 +31507,20 @@ export class PromiseNetworkingV1Api { * @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 listIngressClassWithHttpInfo(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> { - const result = this.api.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18109,8 +31538,20 @@ export class PromiseNetworkingV1Api { * @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 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 { - const result = this.api.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18128,8 +31569,20 @@ export class PromiseNetworkingV1Api { * @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 listIngressForAllNamespacesWithHttpInfo(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> { - const result = this.api.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18147,8 +31600,20 @@ export class PromiseNetworkingV1Api { * @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 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 { - const result = this.api.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIngressForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18167,8 +31632,20 @@ export class PromiseNetworkingV1Api { * @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 listNamespacedIngressWithHttpInfo(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> { - const result = this.api.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedIngressWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18187,8 +31664,20 @@ export class PromiseNetworkingV1Api { * @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 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 { - const result = this.api.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18207,8 +31696,20 @@ export class PromiseNetworkingV1Api { * @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 listNamespacedNetworkPolicyWithHttpInfo(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> { - const result = this.api.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedNetworkPolicyWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18227,8 +31728,20 @@ export class PromiseNetworkingV1Api { * @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 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 { - const result = this.api.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18246,8 +31759,20 @@ export class PromiseNetworkingV1Api { * @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 listNetworkPolicyForAllNamespacesWithHttpInfo(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> { - const result = this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18265,8 +31790,20 @@ export class PromiseNetworkingV1Api { * @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 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 { - const result = this.api.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNetworkPolicyForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18280,8 +31817,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIngressClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIngressClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18295,8 +31844,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIngressClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18311,8 +31872,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngressWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18327,8 +31900,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngress(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18343,8 +31928,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18359,8 +31956,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedIngressStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18375,8 +31984,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18391,8 +32012,20 @@ export class PromiseNetworkingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedNetworkPolicy(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18401,8 +32034,20 @@ export class PromiseNetworkingV1Api { * @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). */ - public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readIngressClassWithHttpInfo(name, pretty, _options); + public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readIngressClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -18411,8 +32056,20 @@ export class PromiseNetworkingV1Api { * @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). */ - public readIngressClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readIngressClass(name, pretty, _options); + public readIngressClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readIngressClass(name, pretty, observableOptions); return result.toPromise(); } @@ -18422,8 +32079,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedIngressWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedIngressWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18433,8 +32102,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedIngress(name, namespace, pretty, _options); + public readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedIngress(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18444,8 +32125,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18455,8 +32148,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedIngressStatus(name, namespace, pretty, _options); + public readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedIngressStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18466,8 +32171,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18477,8 +32194,20 @@ export class PromiseNetworkingV1Api { * @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 readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedNetworkPolicy(name, namespace, pretty, _options); + public readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedNetworkPolicy(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -18491,8 +32220,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18505,8 +32246,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceIngressClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18520,8 +32273,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18535,8 +32300,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18550,8 +32327,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18565,8 +32354,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18580,8 +32381,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18595,8 +32408,20 @@ export class PromiseNetworkingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18627,8 +32452,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIPAddressWithHttpInfo(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIPAddressWithHttpInfo(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createIPAddressWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18640,8 +32477,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createIPAddress(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createIPAddress(body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createIPAddress(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18653,8 +32502,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createServiceCIDRWithHttpInfo(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createServiceCIDRWithHttpInfo(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createServiceCIDRWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18666,8 +32527,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createServiceCIDR(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createServiceCIDR(body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createServiceCIDR(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -18689,8 +32562,20 @@ export class PromiseNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionIPAddressWithHttpInfo(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> { - const result = this.api.deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionIPAddressWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -18712,8 +32597,20 @@ export class PromiseNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionIPAddress(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -18735,8 +32632,20 @@ export class PromiseNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionServiceCIDRWithHttpInfo(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> { - const result = this.api.deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionServiceCIDRWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -18758,8 +32667,20 @@ export class PromiseNetworkingV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionServiceCIDR(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -18774,8 +32695,20 @@ export class PromiseNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIPAddressWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIPAddressWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteIPAddressWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18790,8 +32723,20 @@ export class PromiseNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteIPAddress(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteIPAddress(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteIPAddress(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18806,8 +32751,20 @@ export class PromiseNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteServiceCIDRWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteServiceCIDRWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteServiceCIDRWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -18822,24 +32779,60 @@ export class PromiseNetworkingV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteServiceCIDR(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteServiceCIDR(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteServiceCIDR(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -18857,8 +32850,20 @@ export class PromiseNetworkingV1beta1Api { * @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 listIPAddressWithHttpInfo(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> { - const result = this.api.listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIPAddressWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18876,8 +32881,20 @@ export class PromiseNetworkingV1beta1Api { * @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 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 { - const result = this.api.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listIPAddress(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listIPAddress(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18895,8 +32912,20 @@ export class PromiseNetworkingV1beta1Api { * @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 listServiceCIDRWithHttpInfo(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> { - const result = this.api.listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceCIDRWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18914,8 +32943,20 @@ export class PromiseNetworkingV1beta1Api { * @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 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 { - const result = this.api.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listServiceCIDR(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listServiceCIDR(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -18929,8 +32970,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIPAddressWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIPAddressWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18944,8 +32997,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchIPAddress(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchIPAddress(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18959,8 +33024,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDRWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18974,8 +33051,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDR(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDR(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -18989,8 +33078,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDRStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19004,8 +33105,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchServiceCIDRStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchServiceCIDRStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19014,8 +33127,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readIPAddressWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readIPAddressWithHttpInfo(name, pretty, _options); + public readIPAddressWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readIPAddressWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -19024,8 +33149,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readIPAddress(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readIPAddress(name, pretty, _options); + public readIPAddress(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readIPAddress(name, pretty, observableOptions); return result.toPromise(); } @@ -19034,8 +33171,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readServiceCIDRWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readServiceCIDRWithHttpInfo(name, pretty, _options); + public readServiceCIDRWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readServiceCIDRWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -19044,8 +33193,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readServiceCIDR(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readServiceCIDR(name, pretty, _options); + public readServiceCIDR(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readServiceCIDR(name, pretty, observableOptions); return result.toPromise(); } @@ -19054,8 +33215,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readServiceCIDRStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readServiceCIDRStatusWithHttpInfo(name, pretty, _options); + public readServiceCIDRStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readServiceCIDRStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -19064,8 +33237,20 @@ export class PromiseNetworkingV1beta1Api { * @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 readServiceCIDRStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readServiceCIDRStatus(name, pretty, _options); + public readServiceCIDRStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readServiceCIDRStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -19078,8 +33263,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIPAddressWithHttpInfo(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIPAddressWithHttpInfo(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceIPAddressWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19092,8 +33289,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceIPAddress(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceIPAddress(name: string, body: V1beta1IPAddress, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceIPAddress(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19106,8 +33315,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDRWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceServiceCIDRWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19120,8 +33341,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDR(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDR(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceServiceCIDR(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19134,8 +33367,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDRStatusWithHttpInfo(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceServiceCIDRStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19148,8 +33393,20 @@ export class PromiseNetworkingV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceServiceCIDRStatus(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceServiceCIDRStatus(name: string, body: V1beta1ServiceCIDR, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceServiceCIDRStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19175,16 +33432,40 @@ export class PromiseNodeApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -19215,8 +33496,20 @@ export class PromiseNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19228,8 +33521,20 @@ export class PromiseNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createRuntimeClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19251,8 +33556,20 @@ export class PromiseNodeV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionRuntimeClassWithHttpInfo(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> { - const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionRuntimeClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -19274,8 +33591,20 @@ export class PromiseNodeV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionRuntimeClass(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 { - const result = this.api.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionRuntimeClass(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -19290,8 +33619,20 @@ export class PromiseNodeV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -19306,24 +33647,60 @@ export class PromiseNodeV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -19341,8 +33718,20 @@ export class PromiseNodeV1Api { * @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 listRuntimeClassWithHttpInfo(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> { - const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19360,8 +33749,20 @@ export class PromiseNodeV1Api { * @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 listRuntimeClass(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 { - const result = this.api.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRuntimeClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19375,8 +33776,20 @@ export class PromiseNodeV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19390,8 +33803,20 @@ export class PromiseNodeV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchRuntimeClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchRuntimeClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19400,8 +33825,20 @@ export class PromiseNodeV1Api { * @param name name of the RuntimeClass * @param [pretty] If \'true\', 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 readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, _options); + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -19410,8 +33847,20 @@ export class PromiseNodeV1Api { * @param name name of the RuntimeClass * @param [pretty] If \'true\', 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 readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readRuntimeClass(name, pretty, _options); + public readRuntimeClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readRuntimeClass(name, pretty, observableOptions); return result.toPromise(); } @@ -19424,8 +33873,20 @@ export class PromiseNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19438,8 +33899,20 @@ export class PromiseNodeV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19465,16 +33938,40 @@ export class PromiseOpenidApi { /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ - public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options); + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(observableOptions); return result.toPromise(); } /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ - public getServiceAccountIssuerOpenIDKeyset(_options?: Configuration): Promise { - const result = this.api.getServiceAccountIssuerOpenIDKeyset(_options); + public getServiceAccountIssuerOpenIDKeyset(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getServiceAccountIssuerOpenIDKeyset(observableOptions); return result.toPromise(); } @@ -19500,16 +33997,40 @@ export class PromisePolicyApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -19541,8 +34062,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19555,8 +34088,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19579,8 +34124,20 @@ export class PromisePolicyV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -19603,8 +34160,20 @@ export class PromisePolicyV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedPodDisruptionBudget(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 { - const result = this.api.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedPodDisruptionBudget(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -19620,8 +34189,20 @@ export class PromisePolicyV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -19637,24 +34218,60 @@ export class PromisePolicyV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -19673,8 +34290,20 @@ export class PromisePolicyV1Api { * @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 listNamespacedPodDisruptionBudgetWithHttpInfo(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> { - const result = this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodDisruptionBudgetWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19693,8 +34322,20 @@ export class PromisePolicyV1Api { * @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 listNamespacedPodDisruptionBudget(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 { - const result = this.api.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedPodDisruptionBudget(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19712,8 +34353,20 @@ export class PromisePolicyV1Api { * @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 listPodDisruptionBudgetForAllNamespacesWithHttpInfo(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> { - const result = this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19731,8 +34384,20 @@ export class PromisePolicyV1Api { * @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 listPodDisruptionBudgetForAllNamespaces(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 { - const result = this.api.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -19747,8 +34412,20 @@ export class PromisePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19763,8 +34440,20 @@ export class PromisePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudget(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudget(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19779,8 +34468,20 @@ export class PromisePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19795,8 +34496,20 @@ export class PromisePolicyV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -19806,8 +34519,20 @@ export class PromisePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -19817,8 +34542,20 @@ export class PromisePolicyV1Api { * @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 readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodDisruptionBudget(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodDisruptionBudget(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -19828,8 +34565,20 @@ export class PromisePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -19839,8 +34588,20 @@ export class PromisePolicyV1Api { * @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 readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _options); + public readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -19854,8 +34615,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19869,8 +34642,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19884,8 +34669,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19899,8 +34696,20 @@ export class PromisePolicyV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19926,16 +34735,40 @@ export class PromiseRbacAuthorizationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -19966,8 +34799,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19979,8 +34824,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterRole(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -19992,8 +34849,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20005,8 +34874,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createClusterRoleBinding(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20019,8 +34900,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20033,8 +34926,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20047,8 +34952,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20061,8 +34978,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20077,8 +35006,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20093,8 +35034,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20109,8 +35062,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20125,8 +35090,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20148,8 +35125,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleWithHttpInfo(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> { - const result = this.api.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20171,8 +35160,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRole(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 { - const result = this.api.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRole(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20194,8 +35195,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleBindingWithHttpInfo(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> { - const result = this.api.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20217,8 +35230,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionClusterRoleBinding(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 { - const result = this.api.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleBinding(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20241,8 +35266,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20265,8 +35302,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRole(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 { - const result = this.api.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRole(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20289,8 +35338,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleBindingWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20313,8 +35374,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedRoleBinding(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 { - const result = this.api.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleBinding(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -20330,8 +35403,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20347,8 +35432,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20364,8 +35461,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -20381,24 +35490,60 @@ export class PromiseRbacAuthorizationV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -20416,8 +35561,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listClusterRoleWithHttpInfo(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> { - const result = this.api.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRoleWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20435,8 +35592,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listClusterRole(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 { - const result = this.api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRole(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20454,8 +35623,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listClusterRoleBindingWithHttpInfo(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> { - const result = this.api.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRoleBindingWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20473,8 +35654,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listClusterRoleBinding(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 { - const result = this.api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listClusterRoleBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20493,8 +35686,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listNamespacedRoleWithHttpInfo(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> { - const result = this.api.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRoleWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20513,8 +35718,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listNamespacedRole(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 { - const result = this.api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRole(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20533,8 +35750,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listNamespacedRoleBindingWithHttpInfo(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> { - const result = this.api.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRoleBindingWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20553,8 +35782,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listNamespacedRoleBinding(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 { - const result = this.api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedRoleBinding(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20572,8 +35813,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listRoleBindingForAllNamespacesWithHttpInfo(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> { - const result = this.api.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20591,8 +35844,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listRoleBindingForAllNamespaces(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 { - const result = this.api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleBindingForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20610,8 +35875,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listRoleForAllNamespacesWithHttpInfo(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> { - const result = this.api.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20629,8 +35906,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 listRoleForAllNamespaces(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 { - const result = this.api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listRoleForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -20644,8 +35933,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRoleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20659,8 +35960,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRole(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRole(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20674,8 +35987,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRoleBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20689,8 +36014,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchClusterRoleBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchClusterRoleBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20705,8 +36042,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRoleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20721,8 +36070,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRole(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRole(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20737,8 +36098,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20753,8 +36126,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedRoleBinding(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedRoleBinding(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -20763,8 +36148,20 @@ export class PromiseRbacAuthorizationV1Api { * @param name name of the ClusterRole * @param [pretty] If \'true\', 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 readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readClusterRoleWithHttpInfo(name, pretty, _options); + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterRoleWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -20773,8 +36170,20 @@ export class PromiseRbacAuthorizationV1Api { * @param name name of the ClusterRole * @param [pretty] If \'true\', 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 readClusterRole(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readClusterRole(name, pretty, _options); + public readClusterRole(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterRole(name, pretty, observableOptions); return result.toPromise(); } @@ -20783,8 +36192,20 @@ export class PromiseRbacAuthorizationV1Api { * @param name name of the ClusterRoleBinding * @param [pretty] If \'true\', 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 readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readClusterRoleBindingWithHttpInfo(name, pretty, _options); + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterRoleBindingWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -20793,8 +36214,20 @@ export class PromiseRbacAuthorizationV1Api { * @param name name of the ClusterRoleBinding * @param [pretty] If \'true\', 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 readClusterRoleBinding(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readClusterRoleBinding(name, pretty, _options); + public readClusterRoleBinding(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readClusterRoleBinding(name, pretty, observableOptions); return result.toPromise(); } @@ -20804,8 +36237,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedRoleWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -20815,8 +36260,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedRole(name, namespace, pretty, _options); + public readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedRole(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -20826,8 +36283,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -20837,8 +36306,20 @@ export class PromiseRbacAuthorizationV1Api { * @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 readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedRoleBinding(name, namespace, pretty, _options); + public readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedRoleBinding(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -20851,8 +36332,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20865,8 +36358,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRole(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRole(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterRole(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20879,8 +36384,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20893,8 +36410,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceClusterRoleBinding(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceClusterRoleBinding(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20908,8 +36437,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20923,8 +36464,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRole(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRole(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20938,8 +36491,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20953,8 +36518,20 @@ export class PromiseRbacAuthorizationV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -20980,16 +36557,40 @@ export class PromiseResourceApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -21020,8 +36621,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClassWithHttpInfo(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClassWithHttpInfo(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21033,8 +36646,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClass(body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21047,8 +36672,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21061,8 +36698,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaim(namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21075,8 +36724,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21089,8 +36750,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplate(namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21102,8 +36775,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSliceWithHttpInfo(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSliceWithHttpInfo(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21115,8 +36800,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSlice(body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21138,8 +36835,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionDeviceClassWithHttpInfo(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> { - const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionDeviceClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21161,8 +36870,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21185,8 +36906,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21209,8 +36942,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21233,8 +36978,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21257,8 +37014,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21280,8 +37049,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionResourceSliceWithHttpInfo(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> { - const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionResourceSliceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21303,8 +37084,20 @@ export class PromiseResourceV1alpha3Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -21319,8 +37112,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21335,8 +37140,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21352,8 +37169,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21369,8 +37198,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21386,8 +37227,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21403,8 +37256,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21419,8 +37284,20 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -21435,24 +37312,60 @@ export class PromiseResourceV1alpha3Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -21470,8 +37383,20 @@ export class PromiseResourceV1alpha3Api { * @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 listDeviceClassWithHttpInfo(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> { - const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21489,8 +37414,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21509,8 +37446,20 @@ export class PromiseResourceV1alpha3Api { * @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 listNamespacedResourceClaimWithHttpInfo(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> { - const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21529,8 +37478,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21549,8 +37510,20 @@ export class PromiseResourceV1alpha3Api { * @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 listNamespacedResourceClaimTemplateWithHttpInfo(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> { - const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21569,8 +37542,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21588,8 +37573,20 @@ export class PromiseResourceV1alpha3Api { * @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 listResourceClaimForAllNamespacesWithHttpInfo(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> { - const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21607,8 +37604,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21626,8 +37635,20 @@ export class PromiseResourceV1alpha3Api { * @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 listResourceClaimTemplateForAllNamespacesWithHttpInfo(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> { - const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21645,8 +37666,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21664,8 +37697,20 @@ export class PromiseResourceV1alpha3Api { * @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 listResourceSliceWithHttpInfo(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> { - const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21683,8 +37728,20 @@ export class PromiseResourceV1alpha3Api { * @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 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 { - const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -21698,8 +37755,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21713,8 +37782,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21729,8 +37810,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21745,8 +37838,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21761,8 +37866,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21777,8 +37894,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21793,8 +37922,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21809,8 +37950,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21824,8 +37977,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21839,8 +38004,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -21849,8 +38026,20 @@ export class PromiseResourceV1alpha3Api { * @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 readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readDeviceClassWithHttpInfo(name, pretty, _options); + public readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readDeviceClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -21859,8 +38048,20 @@ export class PromiseResourceV1alpha3Api { * @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 readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readDeviceClass(name, pretty, _options); + public readDeviceClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readDeviceClass(name, pretty, observableOptions); return result.toPromise(); } @@ -21870,8 +38071,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21881,8 +38094,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, _options); + public readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21892,8 +38117,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21903,8 +38140,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21914,8 +38163,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21925,8 +38186,20 @@ export class PromiseResourceV1alpha3Api { * @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 readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -21935,8 +38208,20 @@ export class PromiseResourceV1alpha3Api { * @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 readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readResourceSliceWithHttpInfo(name, pretty, _options); + public readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readResourceSliceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -21945,8 +38230,20 @@ export class PromiseResourceV1alpha3Api { * @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 readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readResourceSlice(name, pretty, _options); + public readResourceSlice(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readResourceSlice(name, pretty, observableOptions); return result.toPromise(); } @@ -21959,8 +38256,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClassWithHttpInfo(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClassWithHttpInfo(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21973,8 +38282,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClass(name: string, body: V1alpha3DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -21988,8 +38309,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22003,8 +38336,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaim(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22018,8 +38363,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22033,8 +38390,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1alpha3ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22048,8 +38417,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22063,8 +38444,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1alpha3ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22077,8 +38470,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSliceWithHttpInfo(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSliceWithHttpInfo(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22091,8 +38496,20 @@ export class PromiseResourceV1alpha3Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSlice(name: string, body: V1alpha3ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22123,8 +38540,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClassWithHttpInfo(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClassWithHttpInfo(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createDeviceClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22136,8 +38565,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createDeviceClass(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createDeviceClass(body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createDeviceClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22150,8 +38591,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimWithHttpInfo(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22164,8 +38617,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaim(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaim(namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaim(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22178,8 +38643,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplateWithHttpInfo(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22192,8 +38669,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedResourceClaimTemplate(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedResourceClaimTemplate(namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedResourceClaimTemplate(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22205,8 +38694,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSliceWithHttpInfo(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSliceWithHttpInfo(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createResourceSliceWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22218,8 +38719,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createResourceSlice(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createResourceSlice(body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createResourceSlice(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -22241,8 +38754,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionDeviceClassWithHttpInfo(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> { - const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionDeviceClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22264,8 +38789,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionDeviceClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22288,8 +38825,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22312,8 +38861,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22336,8 +38897,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22360,8 +38933,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedResourceClaimTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22383,8 +38968,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionResourceSliceWithHttpInfo(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> { - const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionResourceSliceWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22406,8 +39003,20 @@ export class PromiseResourceV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionResourceSlice(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -22422,8 +39031,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22438,8 +39059,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteDeviceClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteDeviceClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22455,8 +39088,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22472,8 +39117,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22489,8 +39146,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22506,8 +39175,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedResourceClaimTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22522,8 +39203,20 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSliceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -22538,24 +39231,60 @@ export class PromiseResourceV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteResourceSlice(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteResourceSlice(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -22573,8 +39302,20 @@ export class PromiseResourceV1beta1Api { * @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 listDeviceClassWithHttpInfo(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> { - const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22592,8 +39333,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listDeviceClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listDeviceClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22612,8 +39365,20 @@ export class PromiseResourceV1beta1Api { * @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 listNamespacedResourceClaimWithHttpInfo(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> { - const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22632,8 +39397,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22652,8 +39429,20 @@ export class PromiseResourceV1beta1Api { * @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 listNamespacedResourceClaimTemplateWithHttpInfo(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> { - const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedResourceClaimTemplateWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22672,8 +39461,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedResourceClaimTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22691,8 +39492,20 @@ export class PromiseResourceV1beta1Api { * @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 listResourceClaimForAllNamespacesWithHttpInfo(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> { - const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22710,8 +39523,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22729,8 +39554,20 @@ export class PromiseResourceV1beta1Api { * @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 listResourceClaimTemplateForAllNamespacesWithHttpInfo(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> { - const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22748,8 +39585,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceClaimTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22767,8 +39616,20 @@ export class PromiseResourceV1beta1Api { * @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 listResourceSliceWithHttpInfo(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> { - const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSliceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22786,8 +39647,20 @@ export class PromiseResourceV1beta1Api { * @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 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 { - const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listResourceSlice(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listResourceSlice(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -22801,8 +39674,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22816,8 +39701,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchDeviceClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22832,8 +39729,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22848,8 +39757,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22864,8 +39785,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22880,8 +39813,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22896,8 +39841,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22912,8 +39869,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedResourceClaimTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22927,8 +39896,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSliceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22942,8 +39923,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchResourceSlice(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -22952,8 +39945,20 @@ export class PromiseResourceV1beta1Api { * @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 readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readDeviceClassWithHttpInfo(name, pretty, _options); + public readDeviceClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readDeviceClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -22962,8 +39967,20 @@ export class PromiseResourceV1beta1Api { * @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 readDeviceClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readDeviceClass(name, pretty, _options); + public readDeviceClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readDeviceClass(name, pretty, observableOptions); return result.toPromise(); } @@ -22973,8 +39990,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -22984,8 +40013,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, _options); + public readNamespacedResourceClaim(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaim(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -22995,8 +40036,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -23006,8 +40059,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, _options); + public readNamespacedResourceClaimStatus(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimStatus(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -23017,8 +40082,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -23028,8 +40105,20 @@ export class PromiseResourceV1beta1Api { * @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 readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, _options); + public readNamespacedResourceClaimTemplate(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedResourceClaimTemplate(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -23038,8 +40127,20 @@ export class PromiseResourceV1beta1Api { * @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 readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readResourceSliceWithHttpInfo(name, pretty, _options); + public readResourceSliceWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readResourceSliceWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -23048,8 +40149,20 @@ export class PromiseResourceV1beta1Api { * @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 readResourceSlice(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readResourceSlice(name, pretty, _options); + public readResourceSlice(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readResourceSlice(name, pretty, observableOptions); return result.toPromise(); } @@ -23062,8 +40175,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClassWithHttpInfo(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClassWithHttpInfo(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23076,8 +40201,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceDeviceClass(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceDeviceClass(name: string, body: V1beta1DeviceClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceDeviceClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23091,8 +40228,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23106,8 +40255,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaim(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaim(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaim(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23121,8 +40282,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatusWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23136,8 +40309,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimStatus(name: string, namespace: string, body: V1beta1ResourceClaim, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23151,8 +40336,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplateWithHttpInfo(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23166,8 +40363,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedResourceClaimTemplate(name: string, namespace: string, body: V1beta1ResourceClaimTemplate, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedResourceClaimTemplate(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23180,8 +40389,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSliceWithHttpInfo(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSliceWithHttpInfo(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23194,8 +40415,20 @@ export class PromiseResourceV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceResourceSlice(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceResourceSlice(name: string, body: V1beta1ResourceSlice, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceResourceSlice(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23221,16 +40454,40 @@ export class PromiseSchedulingApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -23261,8 +40518,20 @@ export class PromiseSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23274,8 +40543,20 @@ export class PromiseSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createPriorityClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23297,8 +40578,20 @@ export class PromiseSchedulingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityClassWithHttpInfo(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> { - const result = this.api.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23320,8 +40613,20 @@ export class PromiseSchedulingV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionPriorityClass(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 { - const result = this.api.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionPriorityClass(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23336,8 +40641,20 @@ export class PromiseSchedulingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -23352,24 +40669,60 @@ export class PromiseSchedulingV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -23387,8 +40740,20 @@ export class PromiseSchedulingV1Api { * @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 listPriorityClassWithHttpInfo(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> { - const result = this.api.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -23406,8 +40771,20 @@ export class PromiseSchedulingV1Api { * @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 listPriorityClass(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 { - const result = this.api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listPriorityClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -23421,8 +40798,20 @@ export class PromiseSchedulingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23436,8 +40825,20 @@ export class PromiseSchedulingV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchPriorityClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchPriorityClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchPriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -23446,8 +40847,20 @@ export class PromiseSchedulingV1Api { * @param name name of the PriorityClass * @param [pretty] If \'true\', 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 readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readPriorityClassWithHttpInfo(name, pretty, _options); + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -23456,8 +40869,20 @@ export class PromiseSchedulingV1Api { * @param name name of the PriorityClass * @param [pretty] If \'true\', 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 readPriorityClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPriorityClass(name, pretty, _options); + public readPriorityClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readPriorityClass(name, pretty, observableOptions); return result.toPromise(); } @@ -23470,8 +40895,20 @@ export class PromiseSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23484,8 +40921,20 @@ export class PromiseSchedulingV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replacePriorityClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23511,16 +40960,40 @@ export class PromiseStorageApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -23551,8 +41024,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23564,8 +41049,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCSIDriver(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23577,8 +41074,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23590,8 +41099,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createCSINode(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23604,8 +41125,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23618,8 +41151,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createNamespacedCSIStorageCapacity(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createNamespacedCSIStorageCapacity(namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23631,8 +41176,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23644,8 +41201,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageClass(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageClass(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23657,8 +41226,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23670,8 +41251,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttachment(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttachment(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttachment(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -23686,8 +41279,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -23702,8 +41307,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSIDriver(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSIDriver(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -23718,8 +41335,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -23734,8 +41363,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteCSINode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteCSINode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -23757,8 +41398,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSIDriverWithHttpInfo(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> { - const result = this.api.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSIDriverWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23780,8 +41433,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSIDriver(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 { - const result = this.api.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSIDriver(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23803,8 +41468,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSINodeWithHttpInfo(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> { - const result = this.api.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSINodeWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23826,8 +41503,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionCSINode(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 { - const result = this.api.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionCSINode(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23850,8 +41539,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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> { - const result = this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23874,8 +41575,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionNamespacedCSIStorageCapacity(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 { - const result = this.api.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionNamespacedCSIStorageCapacity(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23897,8 +41610,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageClassWithHttpInfo(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> { - const result = this.api.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23920,8 +41645,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageClass(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 { - const result = this.api.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageClass(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23943,8 +41680,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttachmentWithHttpInfo(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> { - const result = this.api.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttachmentWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23966,8 +41715,20 @@ export class PromiseStorageV1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttachment(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 { - const result = this.api.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttachment(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -23983,8 +41744,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24000,8 +41773,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24016,8 +41801,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24032,8 +41829,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24048,8 +41857,20 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24064,24 +41885,60 @@ export class PromiseStorageV1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -24099,8 +41956,20 @@ export class PromiseStorageV1Api { * @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 listCSIDriverWithHttpInfo(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> { - const result = this.api.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIDriverWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24118,8 +41987,20 @@ export class PromiseStorageV1Api { * @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 listCSIDriver(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 { - const result = this.api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIDriver(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24137,8 +42018,20 @@ export class PromiseStorageV1Api { * @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 listCSINodeWithHttpInfo(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> { - const result = this.api.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSINodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24156,8 +42049,20 @@ export class PromiseStorageV1Api { * @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 listCSINode(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 { - const result = this.api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSINode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24175,8 +42080,20 @@ export class PromiseStorageV1Api { * @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 listCSIStorageCapacityForAllNamespacesWithHttpInfo(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> { - const result = this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24194,8 +42111,20 @@ export class PromiseStorageV1Api { * @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 listCSIStorageCapacityForAllNamespaces(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 { - const result = this.api.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24214,8 +42143,20 @@ export class PromiseStorageV1Api { * @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 listNamespacedCSIStorageCapacityWithHttpInfo(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> { - const result = this.api.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listNamespacedCSIStorageCapacityWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24234,8 +42175,20 @@ export class PromiseStorageV1Api { * @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 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 { - const result = this.api.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24253,8 +42206,20 @@ export class PromiseStorageV1Api { * @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 listStorageClassWithHttpInfo(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> { - const result = this.api.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24272,8 +42237,20 @@ export class PromiseStorageV1Api { * @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 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 { - const result = this.api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24291,8 +42268,20 @@ export class PromiseStorageV1Api { * @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 listVolumeAttachmentWithHttpInfo(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> { - const result = this.api.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttachmentWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24310,8 +42299,20 @@ export class PromiseStorageV1Api { * @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 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 { - const result = this.api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24325,8 +42326,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSIDriverWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSIDriverWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24340,8 +42353,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSIDriver(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSIDriver(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24355,8 +42380,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSINodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSINodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24370,8 +42407,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchCSINode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchCSINode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24386,8 +42435,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24402,8 +42463,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchNamespacedCSIStorageCapacity(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchNamespacedCSIStorageCapacity(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24417,8 +42490,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24432,8 +42517,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24447,8 +42544,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachmentWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24462,8 +42571,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachment(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachment(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24477,8 +42598,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachmentStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24492,8 +42625,20 @@ export class PromiseStorageV1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttachmentStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttachmentStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24502,8 +42647,20 @@ export class PromiseStorageV1Api { * @param name name of the CSIDriver * @param [pretty] If \'true\', 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 readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCSIDriverWithHttpInfo(name, pretty, _options); + public readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCSIDriverWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24512,8 +42669,20 @@ export class PromiseStorageV1Api { * @param name name of the CSIDriver * @param [pretty] If \'true\', 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 readCSIDriver(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCSIDriver(name, pretty, _options); + public readCSIDriver(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCSIDriver(name, pretty, observableOptions); return result.toPromise(); } @@ -24522,8 +42691,20 @@ export class PromiseStorageV1Api { * @param name name of the CSINode * @param [pretty] If \'true\', 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 readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readCSINodeWithHttpInfo(name, pretty, _options); + public readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCSINodeWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24532,8 +42713,20 @@ export class PromiseStorageV1Api { * @param name name of the CSINode * @param [pretty] If \'true\', 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 readCSINode(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCSINode(name, pretty, _options); + public readCSINode(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readCSINode(name, pretty, observableOptions); return result.toPromise(); } @@ -24543,8 +42736,20 @@ export class PromiseStorageV1Api { * @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 readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options); + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24554,8 +42759,20 @@ export class PromiseStorageV1Api { * @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 readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCSIStorageCapacity(name, namespace, pretty, _options); + public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readNamespacedCSIStorageCapacity(name, namespace, pretty, observableOptions); return result.toPromise(); } @@ -24564,8 +42781,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readStorageClassWithHttpInfo(name, pretty, _options); + public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24574,8 +42803,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readStorageClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readStorageClass(name, pretty, _options); + public readStorageClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageClass(name, pretty, observableOptions); return result.toPromise(); } @@ -24584,8 +42825,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readVolumeAttachmentWithHttpInfo(name, pretty, _options); + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttachmentWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24594,8 +42847,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readVolumeAttachment(name, pretty, _options); + public readVolumeAttachment(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttachment(name, pretty, observableOptions); return result.toPromise(); } @@ -24604,8 +42869,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readVolumeAttachmentStatusWithHttpInfo(name, pretty, _options); + public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttachmentStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -24614,8 +42891,20 @@ export class PromiseStorageV1Api { * @param name name of the 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). */ - public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readVolumeAttachmentStatus(name, pretty, _options); + public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttachmentStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -24628,8 +42917,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24642,8 +42943,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24656,8 +42969,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24670,8 +42995,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceCSINode(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24685,8 +43022,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24700,8 +43049,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24714,8 +43075,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24728,8 +43101,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24742,8 +43127,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24756,8 +43153,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24770,8 +43179,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24784,8 +43205,20 @@ export class PromiseStorageV1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24816,8 +43249,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClassWithHttpInfo(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClassWithHttpInfo(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24829,8 +43274,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClass(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClass(body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -24852,8 +43309,20 @@ export class PromiseStorageV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(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> { - const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttributesClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -24875,8 +43344,20 @@ export class PromiseStorageV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -24891,8 +43372,20 @@ export class PromiseStorageV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -24907,24 +43400,60 @@ export class PromiseStorageV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -24942,8 +43471,20 @@ export class PromiseStorageV1alpha1Api { * @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 listVolumeAttributesClassWithHttpInfo(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> { - const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24961,8 +43502,20 @@ export class PromiseStorageV1alpha1Api { * @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 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 { - const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -24976,8 +43529,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -24991,8 +43556,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25001,8 +43578,20 @@ export class PromiseStorageV1alpha1Api { * @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 readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, _options); + public readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25011,8 +43600,20 @@ export class PromiseStorageV1alpha1Api { * @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 readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readVolumeAttributesClass(name, pretty, _options); + public readVolumeAttributesClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttributesClass(name, pretty, observableOptions); return result.toPromise(); } @@ -25025,8 +43626,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25039,8 +43652,20 @@ export class PromiseStorageV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClass(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClass(name: string, body: V1alpha1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25071,8 +43696,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClassWithHttpInfo(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClassWithHttpInfo(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttributesClassWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25084,8 +43721,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createVolumeAttributesClass(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createVolumeAttributesClass(body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createVolumeAttributesClass(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25107,8 +43756,20 @@ export class PromiseStorageV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionVolumeAttributesClassWithHttpInfo(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> { - const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionVolumeAttributesClassWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -25130,8 +43791,20 @@ export class PromiseStorageV1beta1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public 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 { - const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public 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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionVolumeAttributesClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -25146,8 +43819,20 @@ export class PromiseStorageV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttributesClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -25162,24 +43847,60 @@ export class PromiseStorageV1beta1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteVolumeAttributesClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteVolumeAttributesClass(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -25197,8 +43918,20 @@ export class PromiseStorageV1beta1Api { * @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 listVolumeAttributesClassWithHttpInfo(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> { - const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -25216,8 +43949,20 @@ export class PromiseStorageV1beta1Api { * @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 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 { - const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listVolumeAttributesClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listVolumeAttributesClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -25231,8 +43976,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25246,8 +44003,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchVolumeAttributesClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25256,8 +44025,20 @@ export class PromiseStorageV1beta1Api { * @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 readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, _options); + public readVolumeAttributesClassWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttributesClassWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25266,8 +44047,20 @@ export class PromiseStorageV1beta1Api { * @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 readVolumeAttributesClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readVolumeAttributesClass(name, pretty, _options); + public readVolumeAttributesClass(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readVolumeAttributesClass(name, pretty, observableOptions); return result.toPromise(); } @@ -25280,8 +44073,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClassWithHttpInfo(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttributesClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25294,8 +44099,20 @@ export class PromiseStorageV1beta1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceVolumeAttributesClass(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceVolumeAttributesClass(name: string, body: V1beta1VolumeAttributesClass, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceVolumeAttributesClass(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25321,16 +44138,40 @@ export class PromiseStoragemigrationApi { /** * get information of a group */ - public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIGroupWithHttpInfo(_options); + public getAPIGroupWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroupWithHttpInfo(observableOptions); return result.toPromise(); } /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public getAPIGroup(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIGroup(observableOptions); return result.toPromise(); } @@ -25361,8 +44202,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionMigrationWithHttpInfo(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersionMigrationWithHttpInfo(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageVersionMigrationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25374,8 +44227,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 createStorageVersionMigration(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, _options); + public createStorageVersionMigration(body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.createStorageVersionMigration(body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25397,8 +44262,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionMigrationWithHttpInfo(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> { - const result = this.api.deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersionMigrationWithHttpInfo(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?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -25420,8 +44297,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [timeoutSeconds] Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param [body] */ - public deleteCollectionStorageVersionMigration(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 { - const result = this.api.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _options); + public deleteCollectionStorageVersionMigration(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?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteCollectionStorageVersionMigration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, observableOptions); return result.toPromise(); } @@ -25436,8 +44325,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { - const result = this.api.deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageVersionMigrationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } @@ -25452,24 +44353,60 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [propagationPolicy] Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the 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 deleteStorageVersionMigration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _options); + public deleteStorageVersionMigration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, ignoreStoreReadErrorWithClusterBreakingPotential?: boolean, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.deleteStorageVersionMigration(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getAPIResourcesWithHttpInfo(_options); + public getAPIResourcesWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResourcesWithHttpInfo(observableOptions); return result.toPromise(); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public getAPIResources(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getAPIResources(observableOptions); return result.toPromise(); } @@ -25487,8 +44424,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @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 listStorageVersionMigrationWithHttpInfo(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> { - const result = this.api.listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersionMigrationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -25506,8 +44455,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @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 listStorageVersionMigration(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 { - const result = this.api.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _options); + public listStorageVersionMigration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, sendInitialEvents?: boolean, timeoutSeconds?: number, watch?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.listStorageVersionMigration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, observableOptions); return result.toPromise(); } @@ -25521,8 +44482,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigrationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25536,8 +44509,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigration(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25551,8 +44536,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise> { - const result = this.api.patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigrationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25566,8 +44563,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldValidation] fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 patchStorageVersionMigrationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _options); + public patchStorageVersionMigrationStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, force?: boolean, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.patchStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, force, observableOptions); return result.toPromise(); } @@ -25576,8 +44585,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readStorageVersionMigrationWithHttpInfo(name, pretty, _options); + public readStorageVersionMigrationWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionMigrationWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25586,8 +44607,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigration(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readStorageVersionMigration(name, pretty, _options); + public readStorageVersionMigration(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionMigration(name, pretty, observableOptions); return result.toPromise(); } @@ -25596,8 +44629,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { - const result = this.api.readStorageVersionMigrationStatusWithHttpInfo(name, pretty, _options); + public readStorageVersionMigrationStatusWithHttpInfo(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionMigrationStatusWithHttpInfo(name, pretty, observableOptions); return result.toPromise(); } @@ -25606,8 +44651,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param name name of the StorageVersionMigration * @param [pretty] If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). */ - public readStorageVersionMigrationStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readStorageVersionMigrationStatus(name, pretty, _options); + public readStorageVersionMigrationStatus(name: string, pretty?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.readStorageVersionMigrationStatus(name, pretty, observableOptions); return result.toPromise(); } @@ -25620,8 +44677,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigrationWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionMigrationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25634,8 +44703,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigration(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigration(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionMigration(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25648,8 +44729,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationStatusWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise> { - const result = this.api.replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigrationStatusWithHttpInfo(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionMigrationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25662,8 +44755,20 @@ export class PromiseStoragemigrationV1alpha1Api { * @param [fieldManager] fieldManager is a name associated with the actor or entity that is making these changes. 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 replaceStorageVersionMigrationStatus(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: Configuration): Promise { - const result = this.api.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, _options); + public replaceStorageVersionMigrationStatus(name: string, body: V1alpha1StorageVersionMigration, pretty?: string, dryRun?: string, fieldManager?: string, fieldValidation?: string, _options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.replaceStorageVersionMigrationStatus(name, body, pretty, dryRun, fieldManager, fieldValidation, observableOptions); return result.toPromise(); } @@ -25689,16 +44794,40 @@ export class PromiseVersionApi { /** * get the code version */ - public getCodeWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getCodeWithHttpInfo(_options); + public getCodeWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getCodeWithHttpInfo(observableOptions); return result.toPromise(); } /** * get the code version */ - public getCode(_options?: Configuration): Promise { - const result = this.api.getCode(_options); + public getCode(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getCode(observableOptions); return result.toPromise(); } @@ -25724,16 +44853,40 @@ export class PromiseWellKnownApi { /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ - public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: Configuration): Promise> { - const result = this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options); + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: PromiseConfigurationOptions): Promise> { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(observableOptions); return result.toPromise(); } /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ - public getServiceAccountIssuerOpenIDConfiguration(_options?: Configuration): Promise { - const result = this.api.getServiceAccountIssuerOpenIDConfiguration(_options); + public getServiceAccountIssuerOpenIDConfiguration(_options?: PromiseConfigurationOptions): Promise { + let observableOptions: undefined | ConfigurationOptions + if (_options){ + observableOptions = { + baseServer: _options.baseServer, + httpApi: _options.httpApi, + middleware: _options.middleware?.map( + m => new PromiseMiddlewareWrapper(m) + ), + middlewareMergeStrategy: _options.middlewareMergeStrategy, + authMethods: _options.authMethods + } + } + const result = this.api.getServiceAccountIssuerOpenIDConfiguration(observableOptions); return result.toPromise(); } diff --git a/src/health.ts b/src/health.ts index 569418f7e72..59e29aafe52 100644 --- a/src/health.ts +++ b/src/health.ts @@ -48,8 +48,8 @@ export class Health { return this.healthz(opts); } return false; - } catch (err: unknown) { - if (err instanceof Error && err.name === 'AbortError') { + } catch (err: any) { + if (err.name === 'AbortError') { throw err; } throw new Error('Error occurred in health request'); diff --git a/src/health_test.ts b/src/health_test.ts index 293142107fc..6e97b1ce4a1 100644 --- a/src/health_test.ts +++ b/src/health_test.ts @@ -1,148 +1,161 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { rejects, strictEqual } from 'node:assert'; import nock from 'nock'; import { KubeConfig } from './config.js'; import { Health } from './health.js'; import { Cluster, User } from './config_types.js'; +import { RequestOptions } from 'node:https'; describe('Health', () => { - describe('livez', () => { - it('should throw an error if no current active cluster', async () => { - const kc = new KubeConfig(); - const health = new Health(kc); - await expect(health.livez({})).to.be.rejectedWith('No currently active cluster'); - }); - - it('should return true if /livez returns with status 200', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com').get('/livez').reply(200); - const health = new Health(kc); - - const r = await health.livez({}); - expect(r).to.be.true; - scope.done(); - }); - - it('should return false if /livez returns with status 500', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com').get('/livez').reply(500); - const health = new Health(kc); - - const r = await health.livez({}); - expect(r).to.be.false; - scope.done(); - }); - - it('should return true if /livez returns status 404 and /healthz returns status 200', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com'); - scope.get('/livez').reply(404); - scope.get('/healthz').reply(200); - const health = new Health(kc); - - const r = await health.livez({}); - expect(r).to.be.true; - scope.done(); - }); - - it('should return false if /livez returns status 404 and /healthz returns status 500', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com'); - scope.get('/livez').reply(404); - scope.get('/healthz').reply(500); - const health = new Health(kc); - - const r = await health.livez({}); - expect(r).to.be.false; - scope.done(); - }); - - it('should return true if both /livez and /healthz return status 404', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com'); - scope.get('/livez').reply(404); - scope.get('/healthz').reply(200); - const health = new Health(kc); - - const r = await health.livez({}); - expect(r).to.be.true; - scope.done(); - }); - - it('should throw an error when fetch throws an error', async () => { - const kc = new KubeConfig(); - const cluster = { - name: 'foo', - server: 'https://server.com', - } as Cluster; - - const user = { - name: 'my-user', - password: 'some-password', - } as User; - kc.loadFromClusterAndUser(cluster, user); - - const scope = nock('https://server.com'); - scope.get('/livez').replyWithError(new Error('an error')); - const health = new Health(kc); - - await expect(health.livez({})).to.be.rejectedWith('Error occurred in health request'); - scope.done(); + [ + { + path: '/livez', + method: async (health: Health, opts: RequestOptions) => health.livez(opts), + }, + { + path: '/readyz', + method: async (health: Health, opts: RequestOptions) => health.readyz(opts), + }, + ].forEach((test) => { + describe(test.path, () => { + it('should throw an error if no current active cluster', async () => { + const kc = new KubeConfig(); + const health = new Health(kc); + await rejects(test.method(health, {}), { message: 'No currently active cluster' }); + }); + + it(`should return true if ${test.path} returns with status 200`, async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com').get(test.path).reply(200); + const health = new Health(kc); + + const r = await test.method(health, {}); + strictEqual(r, true); + scope.done(); + }); + + it(`should return false if ${test.path} returns with status 500`, async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com').get(test.path).reply(500); + const health = new Health(kc); + + const r = await test.method(health, {}); + strictEqual(r, false); + scope.done(); + }); + + it(`should return true if ${test.path} returns status 404 and /healthz returns status 200`, async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com'); + scope.get(test.path).reply(404); + scope.get('/healthz').reply(200); + const health = new Health(kc); + + const r = await test.method(health, {}); + strictEqual(r, true); + scope.done(); + }); + + it(`should return false if ${test.path} returns status 404 and /healthz returns status 500`, async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com'); + scope.get(test.path).reply(404); + scope.get('/healthz').reply(500); + const health = new Health(kc); + + const r = await test.method(health, {}); + strictEqual(r, false); + scope.done(); + }); + + it(`should return true if both ${test.path} and /healthz return status 404`, async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com'); + scope.get(test.path).reply(404); + scope.get('/healthz').reply(404); + const health = new Health(kc); + + const r = await test.method(health, {}); + strictEqual(r, true); + scope.done(); + }); + + it('should throw an error when fetch throws an error', async () => { + const kc = new KubeConfig(); + const cluster = { + name: 'foo', + server: 'https://server.com', + } as Cluster; + + const user = { + name: 'my-user', + password: 'some-password', + } as User; + kc.loadFromClusterAndUser(cluster, user); + + const scope = nock('https://server.com'); + scope.get(test.path).replyWithError(new Error('an error')); + const health = new Health(kc); + + await rejects(test.method(health, {}), { message: 'Error occurred in health request' }); + scope.done(); + }); }); }); }); diff --git a/src/index.ts b/src/index.ts index feefcacc816..10fb300edeb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,6 +15,8 @@ export * from './patch.js'; export * from './metrics.js'; export * from './object.js'; export * from './health.js'; +export * from './middleware.js'; +export * from './patch.js'; export { type ConfigOptions, type User, type Cluster, type Context } from './config_types.js'; // Export FetchError so that instanceof checks in user code will definitely use the same instance diff --git a/src/integration_test.ts b/src/integration_test.ts index fc8b589f1d1..a62796a166d 100644 --- a/src/integration_test.ts +++ b/src/integration_test.ts @@ -1,16 +1,14 @@ -import { expect, use } from 'chai'; -import chaiAsPromised from 'chai-as-promised'; +import { describe, it } from 'node:test'; +import { deepEqual } from 'node:assert'; import nock from 'nock'; import { CoreV1Api } from './api.js'; import { KubeConfig } from './config.js'; import { Cluster, User } from './config_types.js'; -use(chaiAsPromised); - describe('FullRequest', () => { describe('getPods', () => { - it('should get pods successfully', () => { + it('should get pods successfully', async () => { const kc = new KubeConfig(); const cluster = { name: 'foo', @@ -41,9 +39,9 @@ describe('FullRequest', () => { .get('/api/v1/namespaces/default/pods') .reply(200, result); - const promise = k8sApi.listNamespacedPod({ namespace: 'default' }); + const list = await k8sApi.listNamespacedPod({ namespace: 'default' }); - return expect(promise).to.eventually.deep.equals(result); + return deepEqual(list, result); }); }); }); diff --git a/src/log.ts b/src/log.ts index bb237cf4ede..419c8b9a0c3 100644 --- a/src/log.ts +++ b/src/log.ts @@ -140,9 +140,9 @@ export class Log { const status = response.status; if (status === 200) { // TODO: the follow search param still has the stream close prematurely based on my testing - response.body.pipe(stream); + response.body!.pipe(stream); } else if (status === 500) { - const v1status = response.body as V1Status; + const v1status = (await response.json()) as V1Status; const v1code = v1status.code; const v1message = v1status.message; if (v1code !== undefined && v1message !== undefined) { @@ -152,6 +152,13 @@ export class Log { v1status, normalizeResponseHeaders(response), ); + } else { + throw new ApiException( + status, + 'Error occurred in log request', + undefined, + normalizeResponseHeaders(response), + ); } } else { throw new ApiException( diff --git a/src/log_test.ts b/src/log_test.ts index a55898453bc..f462fbbb5cd 100644 --- a/src/log_test.ts +++ b/src/log_test.ts @@ -1,8 +1,178 @@ -import { expect } from 'chai'; -import { AddOptionsToSearchParams, LogOptions } from './log.js'; +import { afterEach, describe, it } from 'node:test'; +import { strictEqual, rejects, throws } from 'node:assert'; +import nock from 'nock'; +import { AddOptionsToSearchParams, Log, LogOptions } from './log.js'; +import { KubeConfig } from './config.js'; +import { Writable } from 'node:stream'; describe('Log', () => { + describe('Constructor', () => { + it('should work', () => { + const config = new KubeConfig(); + config.addCluster({ + name: 'foo', + server: 'https://example.com', + caData: 'certificate-authority-data', + skipTLSVerify: false, + }); + const log = new Log(config); + strictEqual(log.config, config); + }); + }); + describe('log', () => { + const config = new KubeConfig(); + config.addCluster({ + name: 'foo', + server: 'https://example.com', + caData: 'certificate-authority-data', + skipTLSVerify: false, + }); + config.addContext({ + name: 'foo', + cluster: 'foo', + user: 'foo', + }); + config.setCurrentContext('foo'); + const log = new Log(config); + + afterEach(() => { + nock.cleanAll(); + }); + + it('should make a request with correct parameters', async () => { + const namespace = 'default'; + const podName = 'mypod'; + const containerName = 'mycontainer'; + const stream = new Writable({ + write(chunk, encoding, callback) { + callback(); + }, + }); + const options: LogOptions = { + follow: true, + limitBytes: 100, + pretty: true, + previous: true, + sinceSeconds: 1, + tailLines: 1, + timestamps: true, + }; + + nock('https://example.com') + .get('/api/v1/namespaces/default/pods/mypod/log') + .query({ + container: 'mycontainer', + follow: 'true', + limitBytes: '100', + pretty: 'true', + previous: 'true', + sinceSeconds: '1', + tailLines: '1', + timestamps: 'true', + }) + .reply(200, 'log data'); + + const controller = await log.log(namespace, podName, containerName, stream, options); + strictEqual(controller instanceof AbortController, true); + }); + + it('should throw an error if no active cluster', async () => { + const configWithoutCluster = new KubeConfig(); + const logWithoutCluster = new Log(configWithoutCluster); + const namespace = 'default'; + const podName = 'mypod'; + const containerName = 'mycontainer'; + const stream = new Writable({ + write(chunk, encoding, callback) { + callback(); + }, + }); + + await rejects(async () => { + await logWithoutCluster.log(namespace, podName, containerName, stream); + }, /No currently active cluster/); + }); + + it('should handle API exceptions on non-500', async () => { + const namespace = 'default'; + const podName = 'mypod'; + const containerName = 'mycontainer'; + const stream = new Writable({ + write(chunk, encoding, callback) { + callback(); + }, + }); + + nock('https://example.com') + .get('/api/v1/namespaces/default/pods/mypod/log') + .query({ container: 'mycontainer' }) + .reply(501, { message: 'Error occurred in log request' }); + + await rejects(async () => { + await log.log(namespace, podName, containerName, stream); + }, /Error occurred in log request/); + }); + + it('should handle API exceptions on 500', async () => { + const namespace = 'default'; + const podName = 'mypod'; + const containerName = 'mycontainer'; + const stream = new Writable({ + write(chunk, encoding, callback) { + callback(); + }, + }); + + nock('https://example.com') + .get('/api/v1/namespaces/default/pods/mypod/log') + .query({ container: 'mycontainer' }) + .reply(500, { message: 'Error occurred in log request' }); + + await rejects(async () => { + await log.log(namespace, podName, containerName, stream); + }, /Error occurred in log request/); + }); + + it('should handle V1Status with code and message', async () => { + const namespace = 'default'; + const podName = 'mypod'; + const containerName = 'mycontainer'; + const stream = new Writable({ + write(chunk, encoding, callback) { + callback(); + }, + }); + + const v1Status = { + kind: 'Status', + apiVersion: 'v1', + metadata: {}, + status: 'Failure', + message: 'Pod not found', + reason: 'NotFound', + details: { + name: podName, + kind: 'pods', + }, + code: 404, + }; + + nock('https://example.com') + .get('/api/v1/namespaces/default/pods/mypod/log') + .query({ container: 'mycontainer' }) + .reply(500, v1Status); + + await rejects(async () => { + await log.log(namespace, podName, containerName, stream); + }, /Pod not found/); + }); + }); describe('AddOptionsToSearchParams', () => { + it('should handle no log options', () => { + const searchParams = new URLSearchParams(); + AddOptionsToSearchParams(undefined, searchParams); + // verify that it doesn't throw. + }); it('should add options to search params', () => { let searchParams = new URLSearchParams(); let options: LogOptions = { @@ -15,28 +185,28 @@ describe('Log', () => { timestamps: true, }; AddOptionsToSearchParams(options, searchParams); - expect(searchParams.get('follow')).to.equal('true'); - expect(searchParams.get('limitBytes')).to.equal('100'); - expect(searchParams.get('pretty')).to.equal('true'); - expect(searchParams.get('previous')).to.equal('true'); - expect(searchParams.get('sinceSeconds')).to.equal('1'); - expect(searchParams.get('tailLines')).to.equal('1'); - expect(searchParams.get('timestamps')).to.equal('true'); + strictEqual(searchParams.get('follow'), 'true'); + strictEqual(searchParams.get('limitBytes'), '100'); + strictEqual(searchParams.get('pretty'), 'true'); + strictEqual(searchParams.get('previous'), 'true'); + strictEqual(searchParams.get('sinceSeconds'), '1'); + strictEqual(searchParams.get('tailLines'), '1'); + strictEqual(searchParams.get('timestamps'), 'true'); const sinceTime = new Date().toISOString(); searchParams = new URLSearchParams(); options = { sinceTime }; AddOptionsToSearchParams(options, searchParams); - expect(searchParams.get('sinceTime')).to.equal(sinceTime); + strictEqual(searchParams.get('sinceTime'), sinceTime); }); it('should use defaults for', () => { const searchParams = new URLSearchParams(); const options: LogOptions = {}; AddOptionsToSearchParams(options, searchParams); - expect(searchParams.get('follow')).to.equal('false'); - expect(searchParams.get('pretty')).to.equal('false'); - expect(searchParams.get('previous')).to.equal('false'); - expect(searchParams.get('timestamps')).to.equal('false'); + strictEqual(searchParams.get('follow'), 'false'); + strictEqual(searchParams.get('pretty'), 'false'); + strictEqual(searchParams.get('previous'), 'false'); + strictEqual(searchParams.get('timestamps'), 'false'); }); it('sinceTime and sinceSeconds cannot be used together', () => { const searchParams = new URLSearchParams(); @@ -45,9 +215,9 @@ describe('Log', () => { sinceSeconds: 1, sinceTime, }; - expect(() => { + throws(() => { AddOptionsToSearchParams(options, searchParams); - }).to.throw('at most one of sinceTime or sinceSeconds may be specified'); + }, /at most one of sinceTime or sinceSeconds may be specified/); }); }); }); diff --git a/src/metrics_test.ts b/src/metrics_test.ts index c7abf519464..9be69a326a9 100644 --- a/src/metrics_test.ts +++ b/src/metrics_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { deepStrictEqual, ok, match, rejects, strictEqual } from 'node:assert'; import nock from 'nock'; import { KubeConfig } from './config.js'; import { V1Status, ApiException } from './gen/index.js'; @@ -97,7 +98,7 @@ describe('Metrics', () => { const s = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, emptyPodMetrics); const response = await metricsClient.getPodMetrics(); - expect(response).to.deep.equal(emptyPodMetrics); + deepStrictEqual(response, emptyPodMetrics); s.done(); }); it('should return cluster scope empty pods list when namespace is empty string', async () => { @@ -105,7 +106,7 @@ describe('Metrics', () => { const s = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, emptyPodMetrics); const response = await metricsClient.getPodMetrics(''); - expect(response).to.deep.equal(emptyPodMetrics); + deepStrictEqual(response, emptyPodMetrics); s.done(); }); it('should return namespace scope empty pods list', async () => { @@ -115,7 +116,7 @@ describe('Metrics', () => { .reply(200, emptyPodMetrics); const response = await metricsClient.getPodMetrics(TEST_NAMESPACE); - expect(response).to.deep.equal(emptyPodMetrics); + deepStrictEqual(response, emptyPodMetrics); s.done(); }); it('should return cluster scope pods metrics list', async () => { @@ -123,7 +124,7 @@ describe('Metrics', () => { const s = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, mockedPodMetrics); const response = await metricsClient.getPodMetrics(); - expect(response).to.deep.equal(mockedPodMetrics); + deepStrictEqual(response, mockedPodMetrics); s.done(); }); @@ -134,7 +135,7 @@ describe('Metrics', () => { .reply(200, mockedPodMetrics); const response = await metricsClient.getPodMetrics(TEST_NAMESPACE); - expect(response).to.deep.equal(mockedPodMetrics); + deepStrictEqual(response, mockedPodMetrics); s.done(); }); it('should when connection refused', async () => { @@ -146,10 +147,11 @@ describe('Metrics', () => { currentContext: 'currentContext', }); const metricsClient = new Metrics(kc); - await expect(metricsClient.getPodMetrics()).to.be.rejectedWith( - ApiException, - 'connect ECONNREFUSED 127.0.0.1:51011', - ); + await rejects(metricsClient.getPodMetrics(), (err) => { + ok(err instanceof ApiException); + match(err.message, /connect ECONNREFUSED 127.0.0.1:51011/); + return true; + }); }); it('should throw when no current cluster', async () => { const [metricsClient, scope] = systemUnderTest({ @@ -157,10 +159,10 @@ describe('Metrics', () => { users: [{ name: 'user', password: 'password' }], contexts: [{ name: 'currentContext', cluster: 'cluster', user: 'user' }], }); - await expect(metricsClient.getPodMetrics()).to.be.rejectedWith( - Error, - 'No currently active cluster', - ); + await rejects(metricsClient.getPodMetrics(), { + name: 'Error', + message: 'No currently active cluster', + }); scope.done(); }); it('should resolve to error when 500 - V1 Status', async () => { @@ -171,10 +173,11 @@ describe('Metrics', () => { const [metricsClient, scope] = systemUnderTest(); const s = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(500, response); - await expect(metricsClient.getPodMetrics()).to.be.rejected.then((e) => { - expect(e).to.be.an.instanceOf(ApiException); - expect(e.code).to.equal(response.code); - expect(e.body.message).to.equal(response.message); + await rejects(metricsClient.getPodMetrics(), (e) => { + ok(e instanceof ApiException); + strictEqual(e.code, response.code); + strictEqual(e.body.message, response.message); + return true; }); s.done(); }); @@ -183,10 +186,11 @@ describe('Metrics', () => { const [metricsClient, scope] = systemUnderTest(); const s = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(500, response); - await expect(metricsClient.getPodMetrics()).to.be.rejected.then((e) => { - expect(e).to.be.an.instanceOf(ApiException); - expect(e.code).to.equal(500); - expect(e.message).to.include('Error occurred in metrics request'); + await rejects(metricsClient.getPodMetrics(), (e) => { + ok(e instanceof ApiException); + strictEqual(e.code, 500); + match(e.message, /Error occurred in metrics request/); + return true; }); s.done(); }); @@ -197,7 +201,7 @@ describe('Metrics', () => { const s = scope.get('/apis/metrics.k8s.io/v1beta1/nodes').reply(200, emptyNodeMetrics); const response = await metricsClient.getNodeMetrics(); - expect(response).to.deep.equal(emptyNodeMetrics); + deepStrictEqual(response, emptyNodeMetrics); s.done(); }); it('should return nodes metrics list', async () => { @@ -205,7 +209,7 @@ describe('Metrics', () => { const s = scope.get('/apis/metrics.k8s.io/v1beta1/nodes').reply(200, mockedNodeMetrics); const response = await metricsClient.getNodeMetrics(); - expect(response).to.deep.equal(mockedNodeMetrics); + deepStrictEqual(response, mockedNodeMetrics); s.done(); }); @@ -217,10 +221,11 @@ describe('Metrics', () => { const [metricsClient, scope] = systemUnderTest(); const s = scope.get('/apis/metrics.k8s.io/v1beta1/nodes').reply(500, response); - await expect(metricsClient.getNodeMetrics()).to.be.rejected.then((e) => { - expect(e).to.be.an.instanceOf(ApiException); - expect(e.code).to.equal(response.code); - expect(e.body.message).to.equal(response.message); + await rejects(metricsClient.getNodeMetrics(), (e) => { + ok(e instanceof ApiException); + strictEqual(e.code, response.code); + strictEqual(e.body.message, response.message); + return true; }); s.done(); }); diff --git a/src/middleware.ts b/src/middleware.ts new file mode 100644 index 00000000000..0397e266740 --- /dev/null +++ b/src/middleware.ts @@ -0,0 +1,34 @@ +import type { + RequestContext, + ResponseContext, + ConfigurationOptions, + ObservableMiddleware, +} from './gen/index.js'; +import { of } from './gen/rxjsStub.js'; + +export function setHeaderMiddleware(key: string, value: string): ObservableMiddleware { + return { + pre: (request: RequestContext) => { + request.setHeaderParam(key, value); + return of(request); + }, + post: (response: ResponseContext) => { + return of(response); + }, + }; +} + +// Returns ConfigurationOptions that set a header +export function setHeaderOptions( + key: string, + value: string, + opt?: ConfigurationOptions, +): ConfigurationOptions { + const newMiddlware = setHeaderMiddleware(key, value); + const existingMiddlware = opt?.middleware || []; + return { + ...opt, + middleware: existingMiddlware.concat(newMiddlware), + middlewareMergeStrategy: 'append', // preserve chained middleware from opt + }; +} diff --git a/src/middleware_test.ts b/src/middleware_test.ts new file mode 100644 index 00000000000..f8b3e59b879 --- /dev/null +++ b/src/middleware_test.ts @@ -0,0 +1,50 @@ +import { describe, it } from 'node:test'; +import { RequestContext, ConfigurationOptions, HttpMethod, ObservableMiddleware } from './gen/index.js'; +import { deepStrictEqual } from 'node:assert'; +import { setHeaderMiddleware, setHeaderOptions } from './middleware.js'; + +describe('Middleware', async () => { + describe('setHeaderMiddleware', async () => { + it('should set a header when it is blank', async () => { + const reqContext = new RequestContext('http://nowhere.com', HttpMethod.GET); + deepStrictEqual(reqContext.getHeaders(), {}); + const headerMiddleware = setHeaderMiddleware('test-key', 'test-value'); + const postMiddlewareRequestObservable = await headerMiddleware.pre(reqContext); + const postMiddlewareRequest = await postMiddlewareRequestObservable.toPromise(); + deepStrictEqual(postMiddlewareRequest.getHeaders(), { 'test-key': 'test-value' }); + }); + + it('should replace a header if it is already specified', async () => { + const reqContext = new RequestContext('http://nowhere.com', HttpMethod.GET); + reqContext.setHeaderParam('test-key', 'wrong-value'); + deepStrictEqual(reqContext.getHeaders(), { 'test-key': 'wrong-value' }); + const headerMiddleware = setHeaderMiddleware('test-key', 'test-value'); + const postMiddlewareRequest = await headerMiddleware.pre(reqContext).toPromise(); + deepStrictEqual(postMiddlewareRequest.getHeaders(), { 'test-key': 'test-value' }); + }); + }); + + describe('setHeaderOptions', async () => { + it('should add middleware to set header with no input options arg', async () => { + const reqContext = new RequestContext('http://nowhere.com', HttpMethod.GET); + deepStrictEqual(reqContext.getHeaders(), {}); + const testConfigurationOptions: ConfigurationOptions = {}; + const headerConfigurationOptions = setHeaderOptions( + 'test-key', + 'test-value', + testConfigurationOptions, + ); + if ( + headerConfigurationOptions.middleware === undefined || + headerConfigurationOptions.middleware.length < 1 + ) { + throw new Error('missing middleware in ConfigurationOptions'); + } + const postMiddlewareRequest = await headerConfigurationOptions.middleware[0] + .pre(reqContext) + .toPromise(); + + deepStrictEqual(postMiddlewareRequest.getHeaders(), { 'test-key': 'test-value' }); + }); + }); +}); diff --git a/src/object.ts b/src/object.ts index 91efe2e9c79..52c98a7decf 100644 --- a/src/object.ts +++ b/src/object.ts @@ -19,6 +19,16 @@ import { PatchStrategy } from './patch.js'; /** Kubernetes API verbs. */ type KubernetesApiAction = 'create' | 'delete' | 'patch' | 'read' | 'list' | 'replace'; +type KubernetesObjectHeader = Pick< + T, + 'apiVersion' | 'kind' +> & { + metadata: { + name: string; + namespace?: string; + }; +}; + interface GroupVersion { group: string; version: string; @@ -49,7 +59,10 @@ export class KubernetesObjectApi { /** Cache resource API response. */ protected apiVersionResourceCache: Record = {}; - constructor(protected configuration: Configuration) {} + protected configuration: Configuration; + constructor(configuration: Configuration) { + this.configuration = configuration; + } /** * Create any Kubernetes resource. @@ -278,7 +291,7 @@ export class KubernetesObjectApi { * @return Promise containing the request response and [[KubernetesObject]]. */ public async read( - spec: T, + spec: KubernetesObjectHeader, pretty?: string, exact?: boolean, exportt?: boolean, @@ -606,9 +619,8 @@ export class KubernetesObjectApi { ): Promise { const _config = options || this.configuration; - let authMethod: SecurityAuthentication | undefined; // Apply auth methods - authMethod = _config.authMethods.BearerToken; + const authMethod = _config.authMethods.BearerToken; if (authMethod?.applySecurityAuthentication) { await authMethod?.applySecurityAuthentication(requestContext); } diff --git a/src/object_test.ts b/src/object_test.ts index 0a2dd66eef2..2ccb298dcde 100644 --- a/src/object_test.ts +++ b/src/object_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { before, describe, it } from 'node:test'; +import { deepStrictEqual, ok, rejects, strictEqual } from 'node:assert'; import nock from 'nock'; import { Configuration, V1APIResource, V1APIResourceList, V1Secret } from './api.js'; import { KubeConfig } from './config.js'; @@ -19,8 +20,7 @@ describe('KubernetesObject', () => { const kc = new KubeConfig(); kc.loadFromOptions(testConfigOptions); const c = KubernetesObjectApi.makeApiClient(kc); - expect(c).to.be.ok; - expect((c as any).defaultNamespace).to.equal('default'); + strictEqual((c as any).defaultNamespace, 'default'); }); it('should set the default namespace from context', () => { @@ -32,14 +32,15 @@ describe('KubernetesObject', () => { currentContext: 'dischord', }); const c = KubernetesObjectApi.makeApiClient(kc); - expect(c).to.be.ok; - expect((c as any).defaultNamespace).to.equal('straight-edge'); + strictEqual((c as any).defaultNamespace, 'straight-edge'); }); }); class KubernetesObjectApiTest extends KubernetesObjectApi { - constructor(public configuration: Configuration) { + public configuration: Configuration; + public constructor(configuration: Configuration) { super(configuration); + this.configuration = configuration; } public static makeApiClient(kc?: KubeConfig): KubernetesObjectApiTest { @@ -492,7 +493,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'patch'); - expect(r).to.equal('/api/v1/namespaces/fugazi/services/repeater'); + strictEqual(r, '/api/v1/namespaces/fugazi/services/repeater'); scope.done(); }); @@ -509,7 +510,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'patch'); - expect(r).to.equal('/api/v1/namespaces/fugazi/serviceaccounts/repeater'); + strictEqual(r, '/api/v1/namespaces/fugazi/serviceaccounts/repeater'); scope.done(); }); @@ -533,7 +534,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'patch'); - expect(r).to.equal('/api/v1/namespaces/straight-edge/pods/repeater'); + strictEqual(r, '/api/v1/namespaces/straight-edge/pods/repeater'); scope.done(); }); @@ -557,7 +558,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'patch'); - expect(r).to.equal('/api/v1/namespaces/default/pods/repeater'); + strictEqual(r, '/api/v1/namespaces/default/pods/repeater'); scope.done(); }); @@ -574,7 +575,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'delete'); - expect(r).to.equal('/api/v1/namespaces/repeater'); + strictEqual(r, '/api/v1/namespaces/repeater'); scope.done(); }); @@ -591,7 +592,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'create'); - expect(r).to.equal('/api/v1/namespaces/fugazi/services'); + strictEqual(r, '/api/v1/namespaces/fugazi/services'); scope.done(); }); @@ -608,7 +609,7 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const r = await c.specUriPath(o, 'create'); - expect(r).to.equal('/api/v1/namespaces'); + strictEqual(r, '/api/v1/namespaces'); scope.done(); }); @@ -626,7 +627,7 @@ describe('KubernetesObject', () => { .get('/apis/apps/v1') .reply(200, resourceBodies.apps, contentTypeJsonHeader); const r = await c.specUriPath(o, 'read'); - expect(r).to.equal('/apis/apps/v1/namespaces/fugazi/deployments/repeater'); + strictEqual(r, '/apis/apps/v1/namespaces/fugazi/deployments/repeater'); scope.done(); }); @@ -643,7 +644,7 @@ describe('KubernetesObject', () => { .get('/apis/rbac.authorization.k8s.io/v1') .reply(200, resourceBodies.rbac, contentTypeJsonHeader); const r = await c.specUriPath(o, 'read'); - expect(r).to.equal('/apis/rbac.authorization.k8s.io/v1/clusterroles/repeater'); + strictEqual(r, '/apis/rbac.authorization.k8s.io/v1/clusterroles/repeater'); scope.done(); }); @@ -761,7 +762,7 @@ describe('KubernetesObject', () => { } const scope = nock('https://d.i.y').get(k.p).reply(200, k.b, contentTypeJsonHeader); const r = await c.specUriPath(o, 'patch'); - expect(r).to.equal(k.e); + strictEqual(r, k.e); scope.done(); } }); @@ -876,7 +877,7 @@ describe('KubernetesObject', () => { } const scope = nock('https://d.i.y').get(k.p).reply(200, k.b, contentTypeJsonHeader); const r = await c.specUriPath(o, 'create'); - expect(r).to.equal(k.e); + strictEqual(r, k.e); scope.done(); } }); @@ -890,10 +891,10 @@ describe('KubernetesObject', () => { namespace: 'fugazi', }, }; - await expect(c.specUriPath(o, 'create')).to.be.rejectedWith( - Error, - 'Required spec property kind is not set', - ); + await rejects(c.specUriPath(o, 'create'), { + name: 'Error', + message: 'Required spec property kind is not set', + }); }); it('should throw an error if name required and missing', async () => { @@ -909,10 +910,10 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); - await expect(c.specUriPath(o, 'read')).to.be.rejectedWith( - Error, - 'Required spec property name is not set', - ); + await rejects(c.specUriPath(o, 'read'), { + name: 'Error', + message: 'Required spec property name is not set', + }); scope.done(); }); @@ -929,35 +930,36 @@ describe('KubernetesObject', () => { const scope = nock('https://d.i.y') .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); - await expect(c.specUriPath(o, 'create')).to.be.rejectedWith( - Error, - 'Unrecognized API version and kind: v1 Ingress', - ); + + await rejects(c.specUriPath(o, 'create'), { + name: 'Error', + message: 'Unrecognized API version and kind: v1 Ingress', + }); scope.done(); }); }); describe('resource', () => { let client: KubernetesObjectApiTest; - before(function (this: Mocha.Context): void { + before(function () { client = KubernetesObjectApiTest.makeApiClient(); }); it('should throw an error if apiVersion not set', async () => { for (const a of [null, undefined]) { - await expect(client.resource(a as unknown as string, 'Service')).to.be.rejectedWith( - Error, - 'Required parameter apiVersion was null or undefined when calling resource', - ); + await rejects(client.resource(a as unknown as string, 'Service'), { + name: 'Error', + message: 'Required parameter apiVersion was null or undefined when calling resource', + }); } }); it('should throw an error if kind not set', async () => { for (const a of [null, undefined]) { - await expect(client.resource('v1', a as unknown as string)).to.be.rejectedWith( - Error, - 'Required parameter kind was null or undefined when calling resource', - ); + await rejects(client.resource('v1', a as unknown as string), { + name: 'Error', + message: 'Required parameter kind was null or undefined when calling resource', + }); } }); @@ -981,8 +983,8 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); await c.resource('v1', 'Service'); - expect(preMiddlewareCalled).to.be.true; - expect(postMiddlewareCalled).to.be.true; + strictEqual(preMiddlewareCalled, true); + strictEqual(postMiddlewareCalled, true); scope.done(); }); @@ -992,39 +994,35 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const s = await c.resource('v1', 'Service'); - expect(s).to.be.ok; if (!s) { throw new Error('old TypeScript compiler'); } - expect(s.kind).to.equal('Service'); - expect(s.name).to.equal('services'); - expect(s.namespaced).to.be.true; - expect(c.apiVersionResourceCache).to.be.ok; - expect(c.apiVersionResourceCache.v1).to.be.ok; + strictEqual(s.kind, 'Service'); + strictEqual(s.name, 'services'); + strictEqual(s.namespaced, true); + ok(c.apiVersionResourceCache); + ok(c.apiVersionResourceCache.v1); const sa = await c.resource('v1', 'ServiceAccount'); - expect(sa).to.be.ok; if (!sa) { throw new Error('old TypeScript compiler'); } - expect(sa.kind).to.equal('ServiceAccount'); - expect(sa.name).to.equal('serviceaccounts'); - expect(sa.namespaced).to.be.true; + strictEqual(sa.kind, 'ServiceAccount'); + strictEqual(sa.name, 'serviceaccounts'); + strictEqual(sa.namespaced, true); const p = await c.resource('v1', 'Pod'); if (!p) { throw new Error('old TypeScript compiler'); } - expect(p).to.be.ok; - expect(p.kind).to.equal('Pod'); - expect(p.name).to.equal('pods'); - expect(p.namespaced).to.be.true; + strictEqual(p.kind, 'Pod'); + strictEqual(p.name, 'pods'); + strictEqual(p.namespaced, true); const pv = await c.resource('v1', 'PersistentVolume'); if (!pv) { throw new Error('old TypeScript compiler'); } - expect(pv).to.be.ok; - expect(pv.kind).to.equal('PersistentVolume'); - expect(pv.name).to.equal('persistentvolumes'); - expect(pv.namespaced).to.be.false; + strictEqual(pv.kind, 'PersistentVolume'); + strictEqual(pv.name, 'persistentvolumes'); + strictEqual(pv.namespaced, false); scope.done(); }); @@ -1050,16 +1048,16 @@ describe('KubernetesObject', () => { .get('/api/v1') .reply(200, resourceBodies.core, contentTypeJsonHeader); const s = await c.resource('v1', 'Service'); - expect(s).to.be.ok; if (!s) { throw new Error('old TypeScript compiler'); } - expect(s.kind).to.equal('Service'); - expect(s.name).to.equal('services'); - expect(s.namespaced).to.be.true; - expect(c.apiVersionResourceCache).to.be.ok; - expect(c.apiVersionResourceCache.v1).to.be.ok; - expect(c.apiVersionResourceCache.v1.resources.length).to.deep.equal( + strictEqual(s.kind, 'Service'); + strictEqual(s.name, 'services'); + strictEqual(s.namespaced, true); + ok(c.apiVersionResourceCache); + ok(c.apiVersionResourceCache.v1); + strictEqual( + c.apiVersionResourceCache.v1.resources.length, JSON.parse(resourceBodies.core).resources.length, ); scope.done(); @@ -1678,9 +1676,10 @@ describe('KubernetesObject', () => { const c = await client.create(s, undefined, undefined, 'ManageField'); (c.metadata.annotations as Record).test = '1'; const r = await client.replace(c, 'true'); - expect((r.metadata.annotations as Record).test).to.equal('1'); - expect(parseInt((r.metadata as any).resourceVersion, 10)).to.be.greaterThan( - parseInt((c.metadata as any).resourceVersion, 10), + strictEqual((r.metadata.annotations as Record).test, '1'); + ok( + parseInt((r.metadata as any).resourceVersion, 10) > + parseInt((c.metadata as any).resourceVersion, 10), ); await client.delete(s, undefined, undefined, 7, undefined, 'Foreground'); scope.done(); @@ -1714,18 +1713,18 @@ describe('KubernetesObject', () => { namespace: 'default', }, }); - expect(secret).to.be.instanceof(V1Secret); - expect(secret.data).to.deep.equal({ + strictEqual(secret instanceof V1Secret, true); + deepStrictEqual(secret.data, { key: 'value', }); - expect(secret.metadata).to.be.ok; - expect(secret.metadata!.creationTimestamp).to.deep.equal(new Date('2022-01-01T00:00:00.000Z')); + ok(secret.metadata); + deepStrictEqual(secret.metadata!.creationTimestamp, new Date('2022-01-01T00:00:00.000Z')); scope.done(); }); it('should read a custom resource', async () => { interface CustomTestResource extends KubernetesObject { - spec?: { + spec: { key: string; }; } @@ -1767,11 +1766,11 @@ describe('KubernetesObject', () => { namespace: 'default', }, }); - expect(custom.spec).to.deep.equal({ + deepStrictEqual(custom.spec, { key: 'value', }); - expect(custom.metadata).to.be.ok; - expect(custom.metadata!.creationTimestamp).to.deep.equal(new Date('2022-01-01T00:00:00.000Z')); + ok(custom.metadata); + deepStrictEqual(custom.metadata!.creationTimestamp, new Date('2022-01-01T00:00:00.000Z')); scope.done(); }); @@ -1802,8 +1801,8 @@ describe('KubernetesObject', () => { ); const lr = await client.list('v1', 'Secret', 'default'); const items = lr.items; - expect(items).to.have.length(1); - expect(items[0]).to.be.instanceof(V1Secret); + strictEqual(items.length, 1); + strictEqual(items[0] instanceof V1Secret, true); scope.done(); }); @@ -1846,7 +1845,7 @@ describe('KubernetesObject', () => { 5, ); const items = lr.items; - expect(items).to.have.length(1); + strictEqual(items.length, 1); scope.done(); }); }); @@ -1865,10 +1864,10 @@ describe('KubernetesObject', () => { for (const m of methods) { // TODO: Figure out why Typescript barfs if we do m.call const hack_m = m as any; - await expect(hack_m.call(client, s)).to.be.rejectedWith( - Error, - 'Required parameter spec was null or undefined when calling ', - ); + await rejects(hack_m.call(client, s), { + name: 'Error', + message: /Required parameter spec was null or undefined when calling /, + }); } } }); @@ -1895,7 +1894,10 @@ describe('KubernetesObject', () => { }, }; nock('https://d.i.y'); - await expect(client.read(s)).to.be.rejectedWith(Error, 'Nock: No match for request'); + await rejects(client.read(s), { + code: 'ERR_NOCK_NO_MATCH', + message: /Nock: No match for request/, + }); }); it('should throw an error if name not valid', async () => { @@ -1930,7 +1932,7 @@ describe('KubernetesObject', () => { "apiVersion": "v1", "metadata": {}, "status": "Failure", - "message": "Service \"_not_a_valid_name_\" is invalid: metadata.name: Invalid value: \"_not_a_valid_name_\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')", + "message": "Service "_not_a_valid_name_" is invalid: metadata.name: Invalid value: "_not_a_valid_name_": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')", "reason": "Invalid", "details": { "name": "_not_a_valid_name_", @@ -1938,7 +1940,7 @@ describe('KubernetesObject', () => { "causes": [ { "reason": "FieldValueInvalid", - "message": "Invalid value: \"_not_a_valid_name_\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')", + "message": "Invalid value: "_not_a_valid_name_": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')", "field": "metadata.name" } ] @@ -1948,9 +1950,9 @@ describe('KubernetesObject', () => { contentTypeJsonHeader, ); - await expect(client.create(s)).to.be.rejected.then((e) => { - expect(e).to.be.an.instanceOf(Error); - expect(e.code).to.equal(422); + await rejects(client.create(s), { + name: 'Error', + code: 422, }); scope.done(); }); @@ -1992,28 +1994,26 @@ describe('KubernetesObject', () => { const scope = nock('https://d.i.y') .get('/apis/applications/v1') .reply(404, '{}', contentTypeJsonHeader); - await expect(client.create(d)).to.be.rejected.then((e) => { - expect(e).to.be.an.instanceOf(Error); - expect(e.code).to.equal(404); - expect(e.message).to.contain( - 'Failed to fetch resource metadata for applications/v1/Deployment', - ); + await rejects(client.create(d), { + name: 'Error', + code: 404, + message: /Failed to fetch resource metadata for applications\/v1\/Deployment/, }); scope.done(); }); it('should throw error if no apiVersion', async () => { - await expect((client.list as any)(undefined, undefined)).to.be.rejectedWith( - Error, - 'Required parameter apiVersion was null or undefined when calling ', - ); + await rejects((client.list as any)(undefined, undefined), { + name: 'Error', + message: 'Required parameter apiVersion was null or undefined when calling list.', + }); }); it('should throw error if no kind', async () => { - await expect((client.list as any)('', undefined)).to.be.rejectedWith( - Error, - 'Required parameter kind was null or undefined when calling ', - ); + await rejects((client.list as any)('', undefined), { + name: 'Error', + message: 'Required parameter kind was null or undefined when calling list.', + }); }); }); }); diff --git a/src/oidc_auth.ts b/src/oidc_auth.ts index 09f28a16eab..af5e0c13115 100644 --- a/src/oidc_auth.ts +++ b/src/oidc_auth.ts @@ -22,7 +22,10 @@ interface Client { } class OidcClient implements Client { - public constructor(readonly config: oidc.Configuration) {} + readonly config: oidc.Configuration; + public constructor(c: oidc.Configuration) { + this.config = c; + } public async refresh(token: string): Promise { const newToken = await oidc.refreshTokenGrant(this.config, token); diff --git a/src/oidc_auth_test.ts b/src/oidc_auth_test.ts index 71d7c21508b..3d634447d42 100644 --- a/src/oidc_auth_test.ts +++ b/src/oidc_auth_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { beforeEach, describe, it } from 'node:test'; +import { notStrictEqual, strictEqual } from 'node:assert'; import { OutgoingHttpHeaders } from 'node:http'; import https from 'node:https'; import { base64url } from 'rfc4648'; @@ -15,7 +16,7 @@ function makeJWT(header: string, payload: object, signature: string): string { } describe('OIDCAuth', () => { - var auth: OpenIDConnectAuth; + let auth: OpenIDConnectAuth; beforeEach(() => { auth = new OpenIDConnectAuth(); }); @@ -24,7 +25,7 @@ describe('OIDCAuth', () => { const jwt = OpenIDConnectAuth.decodeJWT( 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.5mhBHqs5_DTLdINd9p5m7ZJ6XD0Xc55kIaCRY5r6HRA', ); - expect(jwt).to.not.be.null; + notStrictEqual(jwt, null); }); it('should correctly parse time from token', () => { @@ -32,7 +33,7 @@ describe('OIDCAuth', () => { const token = makeJWT('{}', { exp: time }, 'fake'); const timeOut = OpenIDConnectAuth.expirationFromToken(token); - expect(timeOut).to.equal(time); + strictEqual(timeOut, time); }); it('should be true for oidc user', () => { @@ -42,7 +43,7 @@ describe('OIDCAuth', () => { }, } as User; - expect(auth.isAuthProvider(user)).to.equal(true); + strictEqual(auth.isAuthProvider(user), true); }); it('should be false for other user', () => { @@ -52,13 +53,13 @@ describe('OIDCAuth', () => { }, } 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('authorization should be undefined if token missing', async () => { @@ -77,7 +78,7 @@ describe('OIDCAuth', () => { const opts = {} as https.RequestOptions; opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.be.undefined; + strictEqual(opts.headers.Authorization, undefined); }); it('authorization should be undefined if client-id missing', async () => { @@ -98,7 +99,7 @@ describe('OIDCAuth', () => { const opts = {} as https.RequestOptions; opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.be.undefined; + strictEqual(opts.headers.Authorization, undefined); }); it('authorization should be work if client-secret missing', async () => { @@ -118,7 +119,7 @@ describe('OIDCAuth', () => { opts.headers = {} as OutgoingHttpHeaders; (auth as any).currentTokenExpiration = Date.now() / 1000 + 1000; await auth.applyAuthentication(user, opts, {}); - expect(opts.headers.Authorization).to.equal('Bearer fakeToken'); + strictEqual(opts.headers.Authorization, 'Bearer fakeToken'); }); it('authorization should be undefined if refresh-token missing', async () => { @@ -139,7 +140,7 @@ describe('OIDCAuth', () => { const opts = {} as https.RequestOptions; opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.be.undefined; + strictEqual(opts.headers.Authorization, undefined); }); it('authorization should work if refresh-token missing but token is unexpired', async () => { @@ -160,7 +161,7 @@ describe('OIDCAuth', () => { const opts = {} as https.RequestOptions; opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts); - expect(opts.headers.Authorization).to.equal(`Bearer ${token}`); + strictEqual(opts.headers.Authorization, `Bearer ${token}`); }); it('authorization should be undefined if idp-issuer-url missing', async () => { @@ -181,7 +182,7 @@ describe('OIDCAuth', () => { const opts = {} as https.RequestOptions; opts.headers = {} as OutgoingHttpHeaders; await auth.applyAuthentication(user, opts, {}); - expect(opts.headers.Authorization).to.be.undefined; + strictEqual(opts.headers.Authorization, undefined); }); it('return token when it is still active', async () => { @@ -202,7 +203,7 @@ describe('OIDCAuth', () => { opts.headers = {} as OutgoingHttpHeaders; (auth as any).currentTokenExpiration = Date.now() / 1000 + 1000; await auth.applyAuthentication(user, opts, {}); - expect(opts.headers.Authorization).to.equal('Bearer fakeToken'); + strictEqual(opts.headers.Authorization, 'Bearer fakeToken'); }); it('return new token when the current expired', async () => { @@ -232,10 +233,10 @@ describe('OIDCAuth', () => { }; }, }); - expect(opts.headers.Authorization).to.equal('Bearer newToken'); - expect((auth as any).currentTokenExpiration).to.equal(newExpiration); + strictEqual(opts.headers.Authorization, 'Bearer newToken'); + strictEqual((auth as any).currentTokenExpiration, newExpiration); // Check also the new refresh token sticks in the user config - expect(user.authProvider.config['refresh-token']).to.equal('newRefreshToken'); + strictEqual(user.authProvider.config['refresh-token'], 'newRefreshToken'); }); it('return a new token when the its the first time we see this user', async () => { @@ -264,7 +265,7 @@ describe('OIDCAuth', () => { }; }, }); - expect(opts.headers.Authorization).to.equal('Bearer newToken'); - expect((auth as any).currentTokenExpiration).to.equal(newExpiration); + strictEqual(opts.headers.Authorization, 'Bearer newToken'); + strictEqual((auth as any).currentTokenExpiration, newExpiration); }); }); diff --git a/src/package_test.ts b/src/package_test.ts index e5171d87fa5..da0a135561b 100644 --- a/src/package_test.ts +++ b/src/package_test.ts @@ -1,5 +1,6 @@ +import { describe, it } from 'node:test'; +import { strictEqual } from 'node:assert'; import { createRequire } from 'node:module'; -import { expect } from 'chai'; const require = createRequire(import.meta.url); // Generic set of tests to verify the package is built and configured correctly @@ -7,10 +8,10 @@ describe('package', () => { it('package-lock.json should match package.json', () => { const v1 = require('../package.json').version; const v2 = require('../package-lock.json').version; - expect(v1).to.equal(v2); + strictEqual(v1, v2); const v3 = require('../package-lock.json').packages[''].version; - expect(v1).to.equal(v3); + strictEqual(v1, v3); }); it('package-lock should only reference npm', () => { @@ -21,8 +22,8 @@ describe('package', () => { for (const key in deps.dependencies) { const dep = deps.dependencies[key]; const resolved = new URL(dep.resolved); - expect(resolved.hostname).to.equal('registry.npmjs.org'); - expect(resolved.protocol).to.equal('https:'); + strictEqual(resolved.hostname, 'registry.npmjs.org'); + strictEqual(resolved.protocol, 'https:'); validateDependencies(dep); } }; diff --git a/src/patch.ts b/src/patch.ts index a4ff6de180a..74c3d762979 100644 --- a/src/patch.ts +++ b/src/patch.ts @@ -6,13 +6,15 @@ * Additionally for Server-Side Apply https://kubernetes.io/docs/reference/using-api/server-side-apply/ * and https://kubernetes.io/docs/reference/using-api/server-side-apply/#api-implementation */ -export enum PatchStrategy { +export const PatchStrategy = { /** Diff-like JSON format. */ - JsonPatch = 'application/json-patch+json', + JsonPatch: 'application/json-patch+json', /** Simple merge. */ - MergePatch = 'application/merge-patch+json', + MergePatch: 'application/merge-patch+json', /** Merge with different strategies depending on field metadata. */ - StrategicMergePatch = 'application/strategic-merge-patch+json', + StrategicMergePatch: 'application/strategic-merge-patch+json', /** Server-Side Apply */ - ServerSideApply = 'application/apply-patch+yaml', -} + ServerSideApply: 'application/apply-patch+yaml', +} as const; + +export type PatchStrategy = (typeof PatchStrategy)[keyof typeof PatchStrategy]; diff --git a/src/portforward_test.ts b/src/portforward_test.ts index fb05481ba39..b71603fa23c 100644 --- a/src/portforward_test.ts +++ b/src/portforward_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { strictEqual, rejects } from 'node:assert'; import { ReadableStreamBuffer, WritableStreamBuffer } from 'stream-buffers'; import { anyFunction, capture, instance, mock, verify } from 'ts-mockito'; @@ -32,12 +33,11 @@ describe('PortForward', () => { const osStream = new WritableStreamBuffer(); const isStream = new ReadableStreamBuffer(); - const conn = await portForward.portForward('ns', 'p', [8000], osStream, null, isStream); + await portForward.portForward('ns', 'p', [8000], osStream, null, isStream); const [, , outputFn] = capture(fakeWebSocket.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) { return; @@ -49,7 +49,7 @@ describe('PortForward', () => { outputFn(0, buffer); // first time, drop two bytes for the port number. - expect(osStream.size()).to.equal(1022); + strictEqual(osStream.size(), 1022); }); it('should correctly port-forward streams if err is null', async () => { @@ -63,8 +63,7 @@ describe('PortForward', () => { const [, , outputFn] = capture(fakeWebSocket.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) { return; @@ -74,7 +73,7 @@ describe('PortForward', () => { // error stream, drop two bytes for the port number. outputFn(1, buffer); // error stream is null, expect output to be dropped and nothing to change. - expect(osStream.size()).to.equal(0); + strictEqual(osStream.size(), 0); }); it('should correctly port-forward streams', async () => { @@ -89,8 +88,7 @@ describe('PortForward', () => { const [, , outputFn] = capture(fakeWebSocket.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) { return; @@ -99,22 +97,22 @@ describe('PortForward', () => { outputFn(0, buffer); // first time, drop two bytes for the port number. - expect(osStream.size()).to.equal(1022); + strictEqual(osStream.size(), 1022); outputFn(0, buffer); - expect(osStream.size()).to.equal(2046); + strictEqual(osStream.size(), 2046); // error stream, drop two bytes for the port number. outputFn(1, buffer); - expect(errStream.size()).to.equal(1022); + strictEqual(errStream.size(), 1022); outputFn(1, buffer); - expect(errStream.size()).to.equal(2046); + strictEqual(errStream.size(), 2046); // unknown stream, shouldn't change anything. outputFn(2, buffer); - expect(osStream.size()).to.equal(2046); - expect(errStream.size()).to.equal(2046); + strictEqual(osStream.size(), 2046); + strictEqual(errStream.size(), 2046); }); it('should throw with no ports or too many', async () => { @@ -123,11 +121,13 @@ describe('PortForward', () => { const osStream = new WritableStreamBuffer(); const isStream = new ReadableStreamBuffer(); - await expect( - portForward.portForward('ns', 'pod', [], osStream, osStream, isStream), - ).to.be.rejectedWith(Error, 'You must provide at least one port to forward to.'); - await expect( - portForward.portForward('ns', 'pod', [1, 2], osStream, osStream, isStream), - ).to.be.rejectedWith(Error, 'Only one port is currently supported for port-forward'); + await rejects(portForward.portForward('ns', 'pod', [], osStream, osStream, isStream), { + name: 'Error', + message: 'You must provide at least one port to forward to.', + }); + await rejects(portForward.portForward('ns', 'pod', [1, 2], osStream, osStream, isStream), { + name: 'Error', + message: 'Only one port is currently supported for port-forward', + }); }); }); diff --git a/src/serializer_test.ts b/src/serializer_test.ts index e20ab63ac3d..9ed7d5be97b 100644 --- a/src/serializer_test.ts +++ b/src/serializer_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { deepEqual, deepStrictEqual } from 'node:assert'; import { ObjectSerializer } from './serializer.js'; describe('ObjectSerializer', () => { @@ -17,7 +18,7 @@ describe('ObjectSerializer', () => { }, }; const res = ObjectSerializer.serialize(s, 'V1Secret'); - expect(res).to.deep.equal({ + deepStrictEqual(res, { apiVersion: 'v1', kind: 'Secret', metadata: { @@ -60,7 +61,7 @@ describe('ObjectSerializer', () => { }, }; const res = ObjectSerializer.serialize(s, 'v1alpha1MyCustomResource'); - expect(res).to.deep.equal({ + deepStrictEqual(res, { apiVersion: 'v1alpha1', kind: 'MyCustomResource', metadata: { @@ -91,7 +92,7 @@ describe('ObjectSerializer', () => { key: 'value', }; const res = ObjectSerializer.serialize(s, 'unknown'); - expect(res).to.deep.equal(s); + deepStrictEqual(res, s); }); }); @@ -110,7 +111,7 @@ describe('ObjectSerializer', () => { }, }; const res = ObjectSerializer.deserialize(s, 'V1Secret'); - expect(res).to.deep.equal({ + deepEqual(res, { apiVersion: 'v1', kind: 'Secret', metadata: { @@ -138,7 +139,7 @@ describe('ObjectSerializer', () => { }, }; const res = ObjectSerializer.deserialize(s, 'v1alpha1MyCustomResource'); - expect(res).to.deep.equal({ + deepEqual(res, { apiVersion: 'v1alpha1', kind: 'MyCustomResource', metadata: { @@ -157,7 +158,7 @@ describe('ObjectSerializer', () => { key: 'value', }; const res = ObjectSerializer.serialize(s, 'unknown'); - expect(res).to.deep.equal(s); + deepStrictEqual(res, s); }); }); }); diff --git a/src/terminal-size-queue.ts b/src/terminal-size-queue.ts index 1a41a937b3e..9ff8ec8a2a7 100644 --- a/src/terminal-size-queue.ts +++ b/src/terminal-size-queue.ts @@ -15,7 +15,6 @@ export class TerminalSizeQueue extends Readable { constructor(opts: ReadableOptions = {}) { super({ ...opts, - // tslint:disable-next-line:no-empty read(): void {}, }); } diff --git a/src/test/index.ts b/src/test/index.ts index 66d899cea95..357ff538db7 100644 --- a/src/test/index.ts +++ b/src/test/index.ts @@ -1,3 +1,3 @@ -export * from './call-awaiter'; -export * from './match-buffer'; -export * from './resizable-writeable-stream-buffer'; +export * from './call-awaiter.js'; +export * from './match-buffer.js'; +export * from './resizable-writeable-stream-buffer.js'; diff --git a/src/test/integration/index.ts b/src/test/integration/index.ts new file mode 100644 index 00000000000..5065dcd4297 --- /dev/null +++ b/src/test/integration/index.ts @@ -0,0 +1,5 @@ +import patchNamespace from './patchNamespace.js'; + +console.log('Integration testing'); + +await patchNamespace(); diff --git a/src/test/integration/name.ts b/src/test/integration/name.ts new file mode 100644 index 00000000000..be6537ae26a --- /dev/null +++ b/src/test/integration/name.ts @@ -0,0 +1,7 @@ +/* + * This function is used to generate a random name for the resources created in the tests. + * This is to avoid conflicts with existing resources. + */ +export function generateName(name: string) { + return name + '-' + Math.random().toString(36).substring(7); +} diff --git a/src/test/integration/patchNamespace.ts b/src/test/integration/patchNamespace.ts new file mode 100644 index 00000000000..5c575fcbd6d --- /dev/null +++ b/src/test/integration/patchNamespace.ts @@ -0,0 +1,48 @@ +import assert from 'node:assert'; +import { PatchStrategy, CoreV1Api, KubeConfig, setHeaderOptions, V1Namespace } from '../../index.js'; +import { generateName } from './name.js'; + +export default async function patchNamespace() { + const kc = new KubeConfig(); + kc.loadFromDefault(); + + const coreV1Client = kc.makeApiClient(CoreV1Api); + let newNS = new V1Namespace(); + const testNSName = generateName('patch-ns'); + newNS.metadata = { + name: testNSName, + labels: { + initialLabel: 'initialValue', + }, + }; + console.log(`Creating namespace ${testNSName}`); + await coreV1Client.createNamespace({ body: newNS }); + newNS = await coreV1Client.readNamespace({ name: testNSName }); + assert.strictEqual(newNS.metadata?.name, testNSName); + assert.strictEqual(newNS.metadata?.labels?.initialLabel, 'initialValue'); + console.log('Namespace created with initial label.'); + + const patch = [ + { + op: 'replace', + path: '/metadata/labels', + value: { + foo: 'bar', + }, + }, + ]; + + console.log(`Patching namespace ${testNSName} to replace labels`); + await coreV1Client.patchNamespace( + { + name: testNSName, + body: patch, + }, + setHeaderOptions('Content-Type', PatchStrategy.JsonPatch), + ); + + const patchedNS = await coreV1Client.readNamespace({ name: testNSName }); + assert.strictEqual(patchedNS.metadata?.labels?.foo, 'bar'); + assert.strictEqual(patchedNS.metadata?.labels?.initialLabel, undefined); + console.log('Namespace patched with new label.'); +} diff --git a/src/test/match-buffer.ts b/src/test/match-buffer.ts index a48bf8f1f7f..636b52beea9 100644 --- a/src/test/match-buffer.ts +++ b/src/test/match-buffer.ts @@ -1,17 +1,18 @@ -import { expect } from 'chai'; +import { deepStrictEqual, strictEqual } from 'node:assert'; import { RequestOptions, Agent } from 'node:https'; -import { Matcher } from 'ts-mockito/lib/matcher/type/Matcher'; +import { Matcher } from 'ts-mockito/lib/matcher/type/Matcher.js'; export function matchBuffer(channel: number, contents: string): StringBufferMatcher { return new StringBufferMatcher(channel, contents); } class StringBufferMatcher extends Matcher { - constructor( - private channel: number, - private contents: string, - ) { + private channel: number; + private contents: string; + constructor(channel: number, contents: string) { super(); + this.channel = channel; + this.contents = contents; } public valueOf(): string { @@ -38,38 +39,38 @@ export function assertRequestAgentsEqual(agent1: Agent, agent2: Agent): void { const BUFFER_EQUAL_TRUE = 0; const ca1 = agent1.options.ca; const ca2 = agent2.options.ca; - //@ts-ignore + // @ts-expect-error if (ca1 !== ca2 && Buffer.compare(ca1, ca2) !== BUFFER_EQUAL_TRUE) { throw 'unequal agent ca buffer'; } const cert1 = agent1.options.cert; const cert2 = agent2.options.cert; - //@ts-ignore + // @ts-expect-error if (cert1 !== cert2 && Buffer.compare(cert1, cert2) !== BUFFER_EQUAL_TRUE) { throw 'unequal agent cert buffer'; } const key1 = agent1.options.key; const key2 = agent2.options.key; - //@ts-ignore + // @ts-expect-error if (key1 !== key2 && Buffer.compare(key1, key2) !== BUFFER_EQUAL_TRUE) { throw 'unequal agent key buffer'; } - expect(agent1.options.passphrase).to.equal(agent2.options.passphrase); - expect(agent1.options.pfx).to.equal(agent2.options.pfx); - expect(agent1.options.rejectUnauthorized).to.equal(agent2.options.rejectUnauthorized); + strictEqual(agent1.options.passphrase, agent2.options.passphrase); + strictEqual(agent1.options.pfx, agent2.options.pfx); + strictEqual(agent1.options.rejectUnauthorized, agent2.options.rejectUnauthorized); } export function assertRequestOptionsEqual(options1: RequestOptions, options2: RequestOptions): void { - //@ts-ignore agent has type Agent | Boolean which we expect to be populated with Agent here + // @ts-expect-error agent has type Agent | Boolean which we expect to be populated with Agent here const agent1: Agent = options1.agent; - //@ts-ignore + // @ts-expect-error const agent2: Agent = options2.agent; assertRequestAgentsEqual(agent1, agent2); - expect(options1.auth).to.equal(options2.auth); - expect(options1.headers).to.deep.equal(options2.headers); - expect(options1.rejectUnauthorized).to.equal(options2.rejectUnauthorized); - expect(options1.servername).to.equal(options2.servername); + strictEqual(options1.auth, options2.auth); + deepStrictEqual(options1.headers, options2.headers); + strictEqual(options1.rejectUnauthorized, options2.rejectUnauthorized); + strictEqual(options1.servername, options2.servername); } diff --git a/src/top.ts b/src/top.ts index dd58d85e489..aea8b292d8b 100644 --- a/src/top.ts +++ b/src/top.ts @@ -11,44 +11,70 @@ import { } from './util.js'; export class ResourceUsage { - constructor( - public readonly Capacity: number | BigInt, - public readonly RequestTotal: number | BigInt, - public readonly LimitTotal: number | BigInt, - ) {} + public readonly Capacity: number | bigint; + public readonly RequestTotal: number | bigint; + public readonly LimitTotal: number | bigint; + + constructor(Capacity: number | bigint, RequestTotal: number | bigint, LimitTotal: number | bigint) { + this.Capacity = Capacity; + this.RequestTotal = RequestTotal; + this.LimitTotal = LimitTotal; + } } export class CurrentResourceUsage { - constructor( - public readonly CurrentUsage: number | BigInt, - public readonly RequestTotal: number | BigInt, - public readonly LimitTotal: number | BigInt, - ) {} + public readonly CurrentUsage: number | bigint; + public readonly RequestTotal: number | bigint; + public readonly LimitTotal: number | bigint; + + constructor(CurrentUsage: number | bigint, RequestTotal: number | bigint, LimitTotal: number | bigint) { + this.CurrentUsage = CurrentUsage; + this.RequestTotal = RequestTotal; + this.LimitTotal = LimitTotal; + } } export class NodeStatus { - constructor( - public readonly Node: V1Node, - public readonly CPU: ResourceUsage, - public readonly Memory: ResourceUsage, - ) {} + public readonly Node: V1Node; + public readonly CPU: ResourceUsage; + public readonly Memory: ResourceUsage; + + constructor(Node: V1Node, CPU: ResourceUsage, Memory: ResourceUsage) { + this.Node = Node; + this.CPU = CPU; + this.Memory = Memory; + } } export class ContainerStatus { - constructor( - public readonly Container: string, - public readonly CPUUsage: CurrentResourceUsage, - public readonly MemoryUsage: CurrentResourceUsage, - ) {} + public readonly Container: string; + public readonly CPUUsage: CurrentResourceUsage; + public readonly MemoryUsage: CurrentResourceUsage; + + constructor(Container: string, CPUUsage: CurrentResourceUsage, MemoryUsage: CurrentResourceUsage) { + this.Container = Container; + this.CPUUsage = CPUUsage; + this.MemoryUsage = MemoryUsage; + } } export class PodStatus { + public readonly Pod: V1Pod; + public readonly CPU: CurrentResourceUsage; + public readonly Memory: CurrentResourceUsage; + public readonly Containers: ContainerStatus[]; + constructor( - public readonly Pod: V1Pod, - public readonly CPU: CurrentResourceUsage, - public readonly Memory: CurrentResourceUsage, - public readonly Containers: ContainerStatus[], - ) {} + Pod: V1Pod, + CPU: CurrentResourceUsage, + Memory: CurrentResourceUsage, + Containers: ContainerStatus[], + ) { + this.Pod = Pod; + this.CPU = CPU; + this.Memory = Memory; + this.Containers = Containers; + } } export async function topNodes(api: CoreV1Api): Promise { diff --git a/src/top_test.ts b/src/top_test.ts index 5a6d3b64975..bccf5c10f94 100644 --- a/src/top_test.ts +++ b/src/top_test.ts @@ -1,9 +1,10 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { deepEqual, deepStrictEqual, strictEqual } from 'assert'; import nock from 'nock'; import { KubeConfig } from './config.js'; import { Metrics, PodMetricsList } from './metrics.js'; -import { topPods } from './top.js'; -import { CoreV1Api, V1Pod } from './api.js'; +import { CurrentResourceUsage, ResourceUsage, topNodes, topPods } from './top.js'; +import { CoreV1Api, V1Node, V1Pod } from './api.js'; const emptyPodMetrics: PodMetricsList = { kind: 'PodMetricsList', @@ -83,6 +84,10 @@ const podList: V1Pod[] = [ }, }, ], + nodeName: 'node1', + }, + status: { + phase: 'Running', }, }, { @@ -118,6 +123,43 @@ const podList: V1Pod[] = [ }, }, ], + nodeName: 'node1', + }, + status: { + phase: 'Running', + }, + }, +]; + +const nodeList: V1Node[] = [ + { + metadata: { + name: 'node1', + }, + status: { + capacity: { + cpu: '4', + memory: '16Gi', + }, + allocatable: { + cpu: '4', + memory: '16Gi', + }, + }, + }, + { + metadata: { + name: 'node2', + }, + status: { + capacity: { + cpu: '8', + memory: '32Gi', + }, + allocatable: { + cpu: '8', + memory: '32Gi', + }, }, }, ]; @@ -134,61 +176,57 @@ const testConfigOptions: any = { const systemUnderTest = ( namespace?: string, options: any = testConfigOptions, -): [() => ReturnType, nock.Scope] => { +): [() => ReturnType, () => ReturnType, nock.Scope] => { const kc = new KubeConfig(); kc.loadFromOptions(options); const metricsClient = new Metrics(kc); const core = kc.makeApiClient(CoreV1Api); const topPodsFunc = () => topPods(core, metricsClient, namespace); + const topNodesFunc = () => topNodes(core); const scope = nock(testConfigOptions.clusters[0].server); - return [topPodsFunc, scope]; + return [topPodsFunc, topNodesFunc, scope]; }; describe('Top', () => { describe('topPods', () => { it('should return empty when no pods', async () => { - const [topPodsFunc, scope] = systemUnderTest(); + const [topPodsFunc, _, scope] = systemUnderTest(); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, emptyPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: [], }); const result = await topPodsFunc(); - expect(result).to.deep.equal([]); + deepStrictEqual(result, []); podMetrics.done(); pods.done(); }); it('should return use cluster scope when namespace empty string', async () => { - const [topPodsFunc, scope] = systemUnderTest(''); + const [topPodsFunc, _, scope] = systemUnderTest(''); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, emptyPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: [], }); const result = await topPodsFunc(); - expect(result).to.deep.equal([]); + deepStrictEqual(result, []); podMetrics.done(); pods.done(); }); it('should return cluster wide pod metrics', async () => { - const [topPodsFunc, scope] = systemUnderTest(); + const [topPodsFunc, _, scope] = systemUnderTest(); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, mockedPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: podList, }); const result = await topPodsFunc(); - expect(result.length).to.equal(2); - expect(result[0].CPU).to.deep.equal({ - CurrentUsage: 0.05, - LimitTotal: 0.1, - RequestTotal: 0.1, - }); - expect(result[0].Memory).to.deep.equal({ - CurrentUsage: BigInt('4005888'), - RequestTotal: BigInt('104857600'), - LimitTotal: BigInt('104857600'), - }); - expect(result[0].Containers).to.deep.equal([ + strictEqual(result.length, 2); + deepStrictEqual(result[0].CPU, new CurrentResourceUsage(0.05, 0.1, 0.1)); + deepStrictEqual( + result[0].Memory, + new CurrentResourceUsage(BigInt('4005888'), BigInt('104857600'), BigInt('104857600')), + ); + deepEqual(result[0].Containers, [ { CPUUsage: { CurrentUsage: 0.05, @@ -203,17 +241,12 @@ describe('Top', () => { }, }, ]); - expect(result[1].CPU).to.deep.equal({ - CurrentUsage: 1.4, - LimitTotal: 2.1, - RequestTotal: 2.1, - }); - expect(result[1].Memory).to.deep.equal({ - CurrentUsage: BigInt('7192576'), - LimitTotal: BigInt('209715200'), - RequestTotal: BigInt('157286400'), - }); - expect(result[1].Containers).to.deep.equal([ + deepStrictEqual(result[1].CPU, new CurrentResourceUsage(1.4, 2.1, 2.1)); + deepStrictEqual( + result[1].Memory, + new CurrentResourceUsage(BigInt('7192576'), BigInt('157286400'), BigInt('209715200')), + ); + deepEqual(result[1].Containers, [ { CPUUsage: { CurrentUsage: 0, @@ -245,24 +278,16 @@ describe('Top', () => { pods.done(); }); it('should return best effort pod metrics', async () => { - const [topPodsFunc, scope] = systemUnderTest(); + const [topPodsFunc, _, scope] = systemUnderTest(); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, mockedPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: bestEffortPodList, }); const result = await topPodsFunc(); - expect(result.length).to.equal(1); - expect(result[0].CPU).to.deep.equal({ - CurrentUsage: 0.05, - LimitTotal: 0, - RequestTotal: 0, - }); - expect(result[0].Memory).to.deep.equal({ - CurrentUsage: BigInt('4005888'), - RequestTotal: 0, - LimitTotal: 0, - }); - expect(result[0].Containers).to.deep.equal([ + strictEqual(result.length, 1); + deepStrictEqual(result[0].CPU, new CurrentResourceUsage(0.05, 0, 0)); + deepStrictEqual(result[0].Memory, new CurrentResourceUsage(BigInt('4005888'), 0, 0)); + deepEqual(result[0].Containers, [ { CPUUsage: { CurrentUsage: 0.05, @@ -281,51 +306,41 @@ describe('Top', () => { pods.done(); }); it('should return 0 when pod metrics missing', async () => { - const [topPodsFunc, scope] = systemUnderTest(); + const [topPodsFunc, _, scope] = systemUnderTest(); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, emptyPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: podList, }); const result = await topPodsFunc(); - expect(result.length).to.equal(2); - expect(result[0].CPU).to.deep.equal({ - CurrentUsage: 0, - LimitTotal: 0.1, - RequestTotal: 0.1, - }); - expect(result[0].Memory).to.deep.equal({ - CurrentUsage: 0, - RequestTotal: BigInt('104857600'), - LimitTotal: BigInt('104857600'), - }); - expect(result[0].Containers).to.deep.equal([]); - expect(result[1].CPU).to.deep.equal({ - CurrentUsage: 0, - LimitTotal: 2.1, - RequestTotal: 2.1, - }); - expect(result[1].Memory).to.deep.equal({ - CurrentUsage: 0, - LimitTotal: BigInt('209715200'), - RequestTotal: BigInt('157286400'), - }); - expect(result[1].Containers).to.deep.equal([]); + strictEqual(result.length, 2); + deepStrictEqual(result[0].CPU, new CurrentResourceUsage(0, 0.1, 0.1)); + deepStrictEqual( + result[0].Memory, + new CurrentResourceUsage(0, BigInt('104857600'), BigInt('104857600')), + ); + deepStrictEqual(result[0].Containers, []); + deepStrictEqual(result[1].CPU, new CurrentResourceUsage(0, 2.1, 2.1)); + deepStrictEqual( + result[1].Memory, + new CurrentResourceUsage(0, BigInt('157286400'), BigInt('209715200')), + ); + deepStrictEqual(result[1].Containers, []); podMetrics.done(); pods.done(); }); it('should return empty array when pods missing', async () => { - const [topPodsFunc, scope] = systemUnderTest(); + const [topPodsFunc, _, scope] = systemUnderTest(); const podMetrics = scope.get('/apis/metrics.k8s.io/v1beta1/pods').reply(200, mockedPodMetrics); const pods = scope.get('/api/v1/pods').reply(200, { items: [], }); const result = await topPodsFunc(); - expect(result.length).to.equal(0); + strictEqual(result.length, 0); podMetrics.done(); pods.done(); }); it('should return namespace pod metrics', async () => { - const [topPodsFunc, scope] = systemUnderTest(TEST_NAMESPACE); + const [topPodsFunc, _, scope] = systemUnderTest(TEST_NAMESPACE); const podMetrics = scope .get(`/apis/metrics.k8s.io/v1beta1/namespaces/${TEST_NAMESPACE}/pods`) .reply(200, mockedPodMetrics); @@ -333,18 +348,13 @@ describe('Top', () => { items: podList, }); const result = await topPodsFunc(); - expect(result.length).to.equal(2); - expect(result[0].CPU).to.deep.equal({ - CurrentUsage: 0.05, - LimitTotal: 0.1, - RequestTotal: 0.1, - }); - expect(result[0].Memory).to.deep.equal({ - CurrentUsage: BigInt('4005888'), - RequestTotal: BigInt('104857600'), - LimitTotal: BigInt('104857600'), - }); - expect(result[0].Containers).to.deep.equal([ + strictEqual(result.length, 2); + deepStrictEqual(result[0].CPU, new CurrentResourceUsage(0.05, 0.1, 0.1)); + deepStrictEqual( + result[0].Memory, + new CurrentResourceUsage(BigInt('4005888'), BigInt('104857600'), BigInt('104857600')), + ); + deepEqual(result[0].Containers, [ { CPUUsage: { CurrentUsage: 0.05, @@ -359,17 +369,12 @@ describe('Top', () => { }, }, ]); - expect(result[1].CPU).to.deep.equal({ - CurrentUsage: 1.4, - LimitTotal: 2.1, - RequestTotal: 2.1, - }); - expect(result[1].Memory).to.deep.equal({ - CurrentUsage: BigInt('7192576'), - LimitTotal: BigInt('209715200'), - RequestTotal: BigInt('157286400'), - }); - expect(result[1].Containers).to.deep.equal([ + deepStrictEqual(result[1].CPU, new CurrentResourceUsage(1.4, 2.1, 2.1)); + deepStrictEqual( + result[1].Memory, + new CurrentResourceUsage(BigInt('7192576'), BigInt('157286400'), BigInt('209715200')), + ); + deepEqual(result[1].Containers, [ { CPUUsage: { CurrentUsage: 0, @@ -401,4 +406,36 @@ describe('Top', () => { pods.done(); }); }); + describe('topNodes', () => { + it('should return empty when no nodes', async () => { + const [_, topNodesFunc, scope] = systemUnderTest(); + const nodes = scope.get('/api/v1/nodes').reply(200, { + items: [], + }); + const result = await topNodesFunc(); + deepStrictEqual(result, []); + nodes.done(); + }); + + it('should return cluster wide node metrics', async () => { + const [_, topNodesFunc, scope] = systemUnderTest(); + const pods = scope.get('/api/v1/pods').times(2).reply(200, { + items: podList, + }); + const nodes = scope.get('/api/v1/nodes').reply(200, { + items: nodeList, + }); + const result = await topNodesFunc(); + strictEqual(result.length, 2); + deepStrictEqual(result[0].CPU, new ResourceUsage(4, 2.2, 2.2)); + deepStrictEqual( + result[0].Memory, + new ResourceUsage(BigInt('17179869184'), BigInt('262144000'), BigInt('314572800')), + ); + deepStrictEqual(result[1].CPU, new ResourceUsage(8, 0, 0)); + deepStrictEqual(result[1].Memory, new ResourceUsage(BigInt('34359738368'), 0, 0)); + pods.done(); + nodes.done(); + }); + }); }); diff --git a/src/util.ts b/src/util.ts index 6ce4c0e0ac3..791d89c7285 100644 --- a/src/util.ts +++ b/src/util.ts @@ -3,12 +3,15 @@ import { CoreV1Api, V1Container, V1Pod } from './gen/index.js'; export async function podsForNode(api: CoreV1Api, nodeName: string): Promise { const allPods = await api.listPodForAllNamespaces(); + if (!allPods.items) { + return []; + } return allPods.items.filter((pod: V1Pod) => pod.spec!.nodeName === nodeName); } export function findSuffix(quantity: string): string { let ix = quantity.length - 1; - while (ix >= 0 && !/[\.0-9]/.test(quantity.charAt(ix))) { + while (ix >= 0 && !/[.0-9]/.test(quantity.charAt(ix))) { ix--; } return ix === -1 ? '' : quantity.substring(ix + 1); @@ -83,11 +86,15 @@ export function quantityToScalar(quantity: string): number | bigint { } export class ResourceStatus { - constructor( - public readonly request: bigint | number, - public readonly limit: bigint | number, - public readonly resourceType: string, - ) {} + public readonly request: bigint | number; + public readonly limit: bigint | number; + public readonly resourceType: string; + + constructor(request: bigint | number, limit: bigint | number, resourceType: string) { + this.request = request; + this.limit = limit; + this.resourceType = resourceType; + } } export function totalCPUForContainer(container: V1Container): ResourceStatus { diff --git a/src/util_test.ts b/src/util_test.ts index 5d982236975..dd1061f8d14 100644 --- a/src/util_test.ts +++ b/src/util_test.ts @@ -1,4 +1,5 @@ -import { expect, assert } from 'chai'; +import { describe, it } from 'node:test'; +import { deepStrictEqual, strictEqual, throws } from 'node:assert'; import { Response } from 'node-fetch'; import { CoreV1Api, V1Container, V1Pod } from './api.js'; import { @@ -24,7 +25,7 @@ describe('Utils', () => { }; const pods = await podsForNode(mockApi as CoreV1Api, 'foo'); - expect(pods.length).to.equal(0); + strictEqual(pods.length, 0); }); it('should only gets for pods named node', async () => { @@ -51,42 +52,41 @@ describe('Utils', () => { }; const pods = await podsForNode(mockApi as CoreV1Api, 'foo'); - expect(pods.length).to.equal(1); - expect(pods[0].spec!.nodeName).to.equal('foo'); + strictEqual(pods.length, 1); + strictEqual(pods[0].spec!.nodeName, 'foo'); }); it('should parse quantities', () => { - expect(quantityToScalar('')).to.equal(0); - - expect(quantityToScalar('2n')).to.equal(2 / 1_000_000_000); - expect(quantityToScalar('3u')).to.equal(3 / 1_000_000); - expect(quantityToScalar('100m')).to.equal(0.1); - expect(quantityToScalar('3k')).to.equal(BigInt(3000)); - expect(quantityToScalar('3M')).to.equal(BigInt(3 * 1000 * 1000)); - expect(quantityToScalar('3G')).to.equal(BigInt(3 * 1000 * 1000 * 1000)); - expect(quantityToScalar('5T')).to.equal(BigInt(5 * 1000 * 1000 * 1000) * BigInt(1000)); - expect(quantityToScalar('3P')).to.equal(BigInt(3 * 1000 * 1000 * 1000) * BigInt(1000 * 1000)); - expect(quantityToScalar('14E')).to.equal( - BigInt(14 * 1000 * 1000 * 1000) * BigInt(1000 * 1000 * 1000), - ); - - expect(quantityToScalar('0.2')).to.equal(0.2); - expect(quantityToScalar('1976m')).to.equal(1.976); - - expect(quantityToScalar('1024')).to.equal(1024); - expect(quantityToScalar('10e3')).to.equal(10000); - - expect(quantityToScalar('10Ki')).to.equal(BigInt(10240)); - expect(quantityToScalar('20Mi')).to.equal(BigInt(1024 * 1024 * 20)); - expect(quantityToScalar('30Gi')).to.equal(BigInt(1024 * 1024 * 1024 * 30)); - expect(quantityToScalar('40Ti')).to.equal(BigInt(1024 * 1024 * 1024 * 1024 * 40)); - expect(quantityToScalar('50Pi')).to.equal(BigInt(1024 * 1024 * 1024 * 1024 * 1024 * 50)); - expect(quantityToScalar('60Ei')).to.equal( - BigInt(1024 * 1024 * 1024) * BigInt(1024 * 1024 * 1024 * 60), - ); - - expect(() => quantityToScalar('foobar')).to.throw('Unknown quantity foobar'); - expect(() => quantityToScalar('100foobar')).to.throw('Unknown suffix: foobar'); + strictEqual(quantityToScalar(''), 0); + strictEqual(quantityToScalar('2n'), 2 / 1_000_000_000); + strictEqual(quantityToScalar('3u'), 3 / 1_000_000); + strictEqual(quantityToScalar('100m'), 0.1); + strictEqual(quantityToScalar('3k'), BigInt(3000)); + strictEqual(quantityToScalar('3M'), BigInt(3 * 1000 * 1000)); + strictEqual(quantityToScalar('3G'), BigInt(3 * 1000 * 1000 * 1000)); + strictEqual(quantityToScalar('5T'), BigInt(5 * 1000 * 1000 * 1000) * BigInt(1000)); + strictEqual(quantityToScalar('3P'), BigInt(3 * 1000 * 1000 * 1000) * BigInt(1000 * 1000)); + strictEqual(quantityToScalar('14E'), BigInt(14 * 1000 * 1000 * 1000) * BigInt(1000 * 1000 * 1000)); + + strictEqual(quantityToScalar('0.2'), 0.2); + strictEqual(quantityToScalar('1976m'), 1.976); + + strictEqual(quantityToScalar('1024'), 1024); + strictEqual(quantityToScalar('10e3'), 10000); + + strictEqual(quantityToScalar('10Ki'), BigInt(10240)); + strictEqual(quantityToScalar('20Mi'), BigInt(1024 * 1024 * 20)); + strictEqual(quantityToScalar('30Gi'), BigInt(1024 * 1024 * 1024 * 30)); + strictEqual(quantityToScalar('40Ti'), BigInt(1024 * 1024 * 1024 * 1024 * 40)); + strictEqual(quantityToScalar('50Pi'), BigInt(1024 * 1024 * 1024 * 1024 * 1024 * 50)); + strictEqual(quantityToScalar('60Ei'), BigInt(1024 * 1024 * 1024) * BigInt(1024 * 1024 * 1024 * 60)); + + throws(() => quantityToScalar('foobar'), { + message: 'Unknown quantity foobar', + }); + throws(() => quantityToScalar('100foobar'), { + message: 'Unknown suffix: foobar', + }); }); it('should get resources for pod', () => { @@ -121,18 +121,18 @@ describe('Utils', () => { } as V1Pod; const cpuResult = totalCPU(pod); - expect(cpuResult.request).to.equal(1.1); - expect(cpuResult.limit).to.equal(0.2); + strictEqual(cpuResult.request, 1.1); + strictEqual(cpuResult.limit, 0.2); const memResult = totalMemory(pod); - expect(memResult.request).to.equal(BigInt(10240)); - expect(memResult.limit).to.equal(BigInt(20480)); + strictEqual(memResult.request, BigInt(10240)); + strictEqual(memResult.limit, BigInt(20480)); }); it('should find the suffix correctly', () => { - expect(findSuffix('1234567')).to.equal(''); - expect(findSuffix('1234asdf')).to.equal('asdf'); - expect(findSuffix('1.0')).to.equal(''); + strictEqual(findSuffix('1234567'), ''); + strictEqual(findSuffix('1234asdf'), 'asdf'); + strictEqual(findSuffix('1.0'), ''); }); it('shoult extract the headers for ApiException correctly', () => { @@ -140,6 +140,6 @@ describe('Utils', () => { response.headers.set('foo', 'bar'); response.headers.set('baz', 'k8s'); - assert.deepEqual(normalizeResponseHeaders(response), { foo: 'bar', baz: 'k8s' }); + deepStrictEqual(normalizeResponseHeaders(response), { foo: 'bar', baz: 'k8s' }); }); }); diff --git a/src/watch.ts b/src/watch.ts index 64c386f0466..ac842180be9 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -1,3 +1,4 @@ +import { STATUS_CODES } from 'node:http'; import { createInterface } from 'node:readline'; import fetch from 'node-fetch'; import { KubeConfig } from './config.js'; @@ -54,11 +55,13 @@ export class Watch { const response = await fetch(watchURL, requestInit); if (response.status === 200) { - response.body.on('error', doneCallOnce); - response.body.on('close', () => doneCallOnce(null)); - response.body.on('finish', () => doneCallOnce(null)); + const body = response.body!; - const lines = createInterface(response.body); + body.on('error', doneCallOnce); + body.on('close', () => doneCallOnce(null)); + body.on('finish', () => doneCallOnce(null)); + + const lines = createInterface(body); lines.on('error', doneCallOnce); lines.on('close', () => doneCallOnce(null)); lines.on('finish', () => doneCallOnce(null)); @@ -66,12 +69,14 @@ export class Watch { try { const data = JSON.parse(line.toString()); callback(data.type, data.object, data); - } catch (ignore) { + } catch { // ignore parse errors } }); } else { - const error = new Error(response.statusText) as Error & { + const statusText = + response.statusText || STATUS_CODES[response.status] || 'Internal Server Error'; + const error = new Error(statusText) as Error & { statusCode: number | undefined; }; error.statusCode = response.status; diff --git a/src/watch_test.ts b/src/watch_test.ts index 95568f8a9ce..0e9c65c0e03 100644 --- a/src/watch_test.ts +++ b/src/watch_test.ts @@ -1,4 +1,5 @@ -import { expect } from 'chai'; +import { describe, it } from 'node:test'; +import { deepStrictEqual, rejects, strictEqual } from 'node:assert'; import nock from 'nock'; import { PassThrough } from 'node:stream'; import { KubeConfig } from './config.js'; @@ -6,7 +7,7 @@ import { Cluster, Context, User } from './config_types.js'; import { Watch } from './watch.js'; import { IncomingMessage } from 'node:http'; -const server = 'http://foo.company.com'; +const server = 'https://foo.company.com'; const fakeConfig: { clusters: Cluster[]; @@ -40,7 +41,7 @@ const systemUnderTest = (): [nock.Scope] => { describe('Watch', () => { it('should construct correctly', () => { const kc = new KubeConfig(); - const watch = new Watch(kc); + new Watch(kc); }); it('should handle error from request stream', async () => { @@ -59,15 +60,14 @@ describe('Watch', () => { await watch.watch( path, {}, - // tslint:disable-next-line:no-empty (phase: string, obj: string) => {}, (err: any) => { doneCalled = true; doneErr = err; }, ); - expect(doneCalled).to.equal(true); - expect(doneErr.toString()).to.equal('Error: Internal Server Error'); + strictEqual(doneCalled, true); + strictEqual(doneErr.toString(), 'Error: Internal Server Error'); s.done(); }); @@ -149,18 +149,18 @@ describe('Watch', () => { await handledAllObjectsPromise; - expect(receivedTypes).to.deep.equal([obj1.type, obj2.type]); - expect(receivedObjects).to.deep.equal([obj1.object, obj2.object]); + deepStrictEqual(receivedTypes, [obj1.type, obj2.type]); + deepStrictEqual(receivedObjects, [obj1.object, obj2.object]); - expect(doneCalled).to.equal(0); + strictEqual(doneCalled, 0); const errIn = new Error('err'); - (response as IncomingMessage).socket.destroy(errIn); + (response as IncomingMessage).destroy(errIn); await donePromise; - expect(doneCalled).to.equal(1); - expect(doneErr).to.deep.equal(errIn); + strictEqual(doneCalled, 1); + deepStrictEqual(doneErr, errIn); s.done(); @@ -227,18 +227,18 @@ describe('Watch', () => { await handledAllObjectsPromise; - expect(receivedTypes).to.deep.equal([obj1.type]); - expect(receivedObjects).to.deep.equal([obj1.object]); + deepStrictEqual(receivedTypes, [obj1.type]); + deepStrictEqual(receivedObjects, [obj1.object]); - expect(doneErr.length).to.equal(0); + strictEqual(doneErr.length, 0); const errIn = new Error('err'); - (response as IncomingMessage).socket.destroy(errIn); + (response as IncomingMessage).destroy(errIn); await donePromise; - expect(doneErr.length).to.equal(1); - expect(doneErr[0]).to.deep.equal(errIn); + strictEqual(doneErr.length, 1); + deepStrictEqual(doneErr[0], errIn); s.done(); @@ -263,12 +263,7 @@ describe('Watch', () => { const path = '/some/path/to/object?watch=true'; - let response: IncomingMessage | undefined; - const s = scope.get(path).reply(200, function (): PassThrough { - this.req.on('response', (r) => { - response = r; - }); stream.push(JSON.stringify(obj1) + '\n'); return stream; }); @@ -305,17 +300,16 @@ describe('Watch', () => { await handledAllObjectsPromise; - expect(receivedTypes).to.deep.equal([obj1.type]); - expect(receivedObjects).to.deep.equal([obj1.object]); - - expect(doneErr.length).to.equal(0); + deepStrictEqual(receivedTypes, [obj1.type]); + deepStrictEqual(receivedObjects, [obj1.object]); + strictEqual(doneErr.length, 0); stream.end(); await donePromise; - expect(doneErr.length).to.equal(1); - expect(doneErr[0]).to.equal(null); + strictEqual(doneErr.length, 1); + strictEqual(doneErr[0], null); s.done(); @@ -370,13 +364,13 @@ describe('Watch', () => { await donePromise; - expect(receivedTypes).to.deep.equal([obj.type]); - expect(receivedObjects).to.deep.equal([obj.object]); + deepStrictEqual(receivedTypes, [obj.type]); + deepStrictEqual(receivedObjects, [obj.object]); s.done(); }); - it('should throw on empty config', () => { + it('should throw on empty config', async () => { const kc = new KubeConfig(); const watch = new Watch(kc); @@ -386,6 +380,6 @@ describe('Watch', () => { () => {}, () => {}, ); - expect(promise).to.be.rejected; + await rejects(promise); }); }); diff --git a/src/web-socket-handler.ts b/src/web-socket-handler.ts index 3ad71dbb558..d0abf6bab1e 100644 --- a/src/web-socket-handler.ts +++ b/src/web-socket-handler.ts @@ -96,6 +96,7 @@ export class WebSocketHandler implements WebSocketInterface { buff.writeUint8(this.CloseStream, 0); buff.writeUint8(this.StdinStream, 1); ws.send(buff); + return; } ws.close(); }); @@ -136,11 +137,12 @@ export class WebSocketHandler implements WebSocketInterface { stdin: stream.Readable, streamNum: number = 0, retryCount: number = 3, + // kind of hacky, but otherwise we can't wait for the writes to flush before testing. + addFlushForTesting: boolean = false, ): () => WebSocket.WebSocket | null { if (retryCount < 0) { throw new Error("retryCount can't be lower than 0."); } - let queue: Promise = Promise.resolve(); let ws: WebSocket.WebSocket | null = null; @@ -157,8 +159,14 @@ export class WebSocketHandler implements WebSocketInterface { }); }); + if (addFlushForTesting) { + stdin.on('flush', async () => { + await queue; + }); + } + stdin.on('end', () => { - if (ws) { + if (ws !== null) { ws.close(); } }); @@ -166,20 +174,32 @@ export class WebSocketHandler implements WebSocketInterface { return () => ws; } + readonly config: KubeConfig; + readonly socketFactory?: ( + uri: string, + protocols: string[], + opts: WebSocket.ClientOptions, + ) => WebSocket.WebSocket; + readonly streams: StreamInterface; + // factory is really just for test injection public constructor( - readonly config: KubeConfig, - readonly socketFactory?: ( + kc: KubeConfig, + socketFactoryFn?: ( uri: string, protocols: string[], opts: WebSocket.ClientOptions, ) => WebSocket.WebSocket, - readonly streams: StreamInterface = { + streamsInterface: StreamInterface = { stdin: process.stdin, stdout: process.stdout, stderr: process.stderr, }, - ) {} + ) { + this.config = kc; + this.socketFactory = socketFactoryFn; + this.streams = streamsInterface; + } /** * Connect to a web socket endpoint. diff --git a/src/web-socket-handler_test.ts b/src/web-socket-handler_test.ts index d652252e45d..22f4ce1917f 100644 --- a/src/web-socket-handler_test.ts +++ b/src/web-socket-handler_test.ts @@ -1,6 +1,7 @@ +import { describe, it } from 'node:test'; +import { deepStrictEqual, equal, notStrictEqual, rejects, strictEqual, throws } from 'node:assert'; import { Readable, Writable } from 'node:stream'; import { setImmediate as setImmediatePromise } from 'node:timers/promises'; -import { expect } from 'chai'; import WebSocket from 'isomorphic-ws'; import { ReadableStreamBuffer, WritableStreamBuffer } from 'stream-buffers'; @@ -16,9 +17,9 @@ describe('WebSocket', () => { const buff = Buffer.alloc(30, 20); const badStream = 10; - expect(() => WebSocketHandler.handleStandardStreams(badStream, buff, osStream, errStream)).to.throw( - `Unknown stream: ${badStream}`, - ); + throws(() => WebSocketHandler.handleStandardStreams(badStream, buff, osStream, errStream), { + message: `Unknown stream: ${badStream}`, + }); }); it('should handle a status to end', () => { const osStream = new WritableStreamBuffer(); @@ -39,10 +40,9 @@ describe('WebSocket', () => { errStream, ); - expect(osStream.size()).to.equal(0); - expect(errStream.size()).to.equal(0); - /* tslint:disable:no-unused-expression */ - expect(output).to.not.be.null; + strictEqual(osStream.size(), 0); + strictEqual(errStream.size(), 0); + notStrictEqual(output, null); }); it('should handle empty buffers', () => { const osStream = new WritableStreamBuffer(); @@ -51,8 +51,8 @@ describe('WebSocket', () => { WebSocketHandler.handleStandardStreams(WebSocketHandler.StdoutStream, buff, osStream, errStream); - expect(osStream.size()).to.equal(0); - expect(errStream.size()).to.equal(0); + strictEqual(osStream.size(), 0); + strictEqual(errStream.size(), 0); }); it('should handle output streams', () => { const osStream = new WritableStreamBuffer(); @@ -66,30 +66,28 @@ describe('WebSocket', () => { WebSocketHandler.handleStandardStreams(WebSocketHandler.StdoutStream, buff1, osStream, errStream); - expect(osStream.size()).to.equal(1024); - expect(errStream.size()).to.equal(0); + strictEqual(osStream.size(), 1024); + strictEqual(errStream.size(), 0); WebSocketHandler.handleStandardStreams(WebSocketHandler.StderrStream, buff2, osStream, errStream); - expect(osStream.size()).to.equal(1024); - expect(errStream.size()).to.equal(512); + strictEqual(osStream.size(), 1024); + strictEqual(errStream.size(), 512); const outputBuffer1 = osStream.getContents() as Buffer; for (let i = 0; i < 1024; i++) { - expect(outputBuffer1[i]).to.equal(fill1); + strictEqual(outputBuffer1[i], fill1); } const outputBuffer2 = errStream.getContents() as Buffer; for (let i = 0; i < 512; i++) { - expect(outputBuffer2[i]).to.equal(fill2); + strictEqual(outputBuffer2[i], fill2); } }); - it('should throw on a config with no cluster', () => { + it('should throw on a config with no cluster', async () => { const config = new KubeConfig(); const handler = new WebSocketHandler(config); - return expect(handler.connect('/some/path', null, null)).to.eventually.be.rejectedWith( - 'No cluster is defined.', - ); + await rejects(handler.connect('/some/path', null, null), { message: 'No cluster is defined.' }); }); it('should error on bad connection', async () => { const kc = new KubeConfig(); @@ -113,12 +111,9 @@ describe('WebSocket', () => { ]; const mockWs = {} as WebSocket.WebSocket; - let uriOut = ''; - const handler = new WebSocketHandler( kc, (uri: string, protocols: string[], opts: WebSocket.ClientOptions): WebSocket.WebSocket => { - uriOut = uri; return mockWs as WebSocket.WebSocket; }, ); @@ -134,7 +129,7 @@ describe('WebSocket', () => { target: mockWs, }); - await expect(promise).to.be.rejected; + await rejects(promise); }); it('should connect properly', async () => { const kc = new KubeConfig(); @@ -173,7 +168,7 @@ describe('WebSocket', () => { const promise = handler.connect(path, null, null); await setImmediatePromise(); - expect(uriOut).to.equal(`wss://${host}${path}`); + strictEqual(uriOut, `wss://${host}${path}`); const event = { error: {}, @@ -257,7 +252,7 @@ describe('WebSocket', () => { const promise = handler.connect(path, textHandler, binaryHandler); await setImmediatePromise(); - expect(uriOut).to.equal(`wss://${host}${path}`); + strictEqual(uriOut, `wss://${host}${path}`); const event = { error: {}, @@ -287,22 +282,22 @@ describe('WebSocket', () => { mockWs.onerror!(errEvt); await promise; - expect(closeCount).to.equal(2); - expect(textReceived).to.equal('string data'); + strictEqual(closeCount, 2); + strictEqual(textReceived, 'string data'); - expect(streamNumber).to.equal(fill); - expect(dataReceived.length).to.equal(size - 1); + strictEqual(streamNumber, fill); + strictEqual(dataReceived.length, size - 1); for (const datum of dataReceived) { - expect(datum).to.equal(fill); + strictEqual(datum, fill); } }); it('handles multi-byte characters', () => { - return new Promise((resolve) => { + return new Promise((resolve) => { const stream = new Readable({ read() {} }); const mockWs = { close() {}, send(data) { - expect(data).to.deep.equal(Buffer.from([0x0f, 0xe2, 0x98, 0x83])); + deepStrictEqual(data, Buffer.from([0x0f, 0xe2, 0x98, 0x83])); resolve(undefined); }, } as WebSocket.WebSocket; @@ -341,7 +336,9 @@ describe('V5 protocol support', () => { protocol: 'v5.channel.k8s.io', } as WebSocket.WebSocket; let uriOut = ''; - let endCalled = false; + let stderrEndCalled = false; + let stdoutEndCalled = false; + let stdinPauseCalled = false; const handler = new WebSocketHandler( kc, (uri: string, protocols: string[], opts: WebSocket.ClientOptions): WebSocket.WebSocket => { @@ -349,11 +346,20 @@ describe('V5 protocol support', () => { return mockWs as WebSocket.WebSocket; }, { - stdin: process.stdin, - stderr: process.stderr, + stdin: { + pause: () => { + stdinPauseCalled = true; + return {} as Readable; + }, + } as Readable, + stderr: { + end: () => { + stderrEndCalled = true; + }, + } as Writable, stdout: { end: () => { - endCalled = true; + stdoutEndCalled = true; }, } as Writable, }, @@ -363,30 +369,37 @@ describe('V5 protocol support', () => { const promise = handler.connect(path, null, null); await setImmediatePromise(); - expect(uriOut).to.equal(`wss://${host}${path}`); + strictEqual(uriOut, `wss://${host}${path}`); const event = { target: mockWs, type: 'open', }; mockWs.onopen!(event); - const errEvt = { - error: {}, - message: 'some message', - type: 'some type', - target: mockWs, - }; - const closeBuff = Buffer.alloc(2); - closeBuff.writeUint8(255, 0); - closeBuff.writeUint8(WebSocketHandler.StdoutStream, 1); - + // Close stdin/stdout with Buffers + [WebSocketHandler.StdinStream, WebSocketHandler.StdoutStream].forEach((stream) => { + const closeBuff = Buffer.alloc(2); + closeBuff.writeUint8(255, 0); + closeBuff.writeUint8(stream, 1); + + mockWs.onmessage!({ + data: closeBuff, + type: 'type', + target: mockWs, + }); + }); + // Close stderr with a string \xff is 'close' \x02 is the stderr stream number + // so that both paths are tested. + const closeMsg = '\xFF\x02'; mockWs.onmessage!({ - data: closeBuff, + data: closeMsg, type: 'type', target: mockWs, }); await promise; - expect(endCalled).to.be.true; + strictEqual(stdoutEndCalled, true); + strictEqual(stderrEndCalled, true); + strictEqual(stdinPauseCalled, true); }); it('should handle closing stdin < v4 protocol', () => { const ws = { @@ -404,23 +417,27 @@ describe('V5 protocol support', () => { send: (data) => { sent = data; }, - close: () => {}, - } as WebSocket; + close: () => { + throw new Error('should not be called'); + }, + } as unknown as WebSocket; const stdinStream = new ReadableStreamBuffer(); WebSocketHandler.handleStandardInput(ws, stdinStream); stdinStream.emit('end'); - expect(sent).to.not.be.null; - expect(sent!.readUint8(0)).to.equal(255); // CLOSE signal - expect(sent!.readUInt8(1)).to.equal(0); // Stdin stream is #0 + notStrictEqual(sent, null); + strictEqual(sent!.readUint8(0), 255); // CLOSE signal + strictEqual(sent!.readUInt8(1), 0); // Stdin stream is #0 }); }); describe('Restartable Handle Standard Input', () => { it('should throw on negative retry', () => { const p = new Promise(() => {}); - expect(() => - WebSocketHandler.restartableHandleStandardInput(() => p, new Readable({ read() {} }), 0, -1), - ).to.throw("retryCount can't be lower than 0."); + throws( + () => + WebSocketHandler.restartableHandleStandardInput(() => p, new Readable({ read() {} }), 0, -1), + { message: "retryCount can't be lower than 0." }, + ); }); it('should retry n times', () => { @@ -441,7 +458,76 @@ describe('Restartable Handle Standard Input', () => { 0, retryTimes, ).catch(() => { - expect(count).to.equal(retryTimes); + strictEqual(count, retryTimes); }); }); + + it('should work correctly', async () => { + let sent: Buffer | null = null; + const ws = { + protocol: 'v5.channel.k8s.io', + send: (data) => { + sent = data; + }, + readyState: WebSocket.OPEN, + close: () => { + throw new Error('should not be called'); + }, + } as unknown as WebSocket; + const p = new Promise((resolve, reject) => resolve(ws)); + let dataCb: any; + let endCb: any; + let flushCb: any; + + const r = { + on: (verb, cb) => { + if (verb === 'data') { + dataCb = cb; + } + if (verb === 'end') { + endCb = cb; + } + if (verb == 'flush') { + flushCb = cb; + } + }, + } as Readable; + + WebSocketHandler.restartableHandleStandardInput(() => p, r, 0, 4, true); + + dataCb('some test data'); + endCb(); + await flushCb(); + + equal(sent!.toString(), '\x00some test data'); + }); + + it('should work if the web socket exists', () => { + let sent: Buffer | null = null; + const ws = { + protocol: 'v5.channel.k8s.io', + send: (data) => { + sent = data; + }, + readyState: WebSocket.OPEN, + close: () => { + throw new Error('should not be called'); + }, + } as unknown as WebSocket; + let count = 0; + WebSocketHandler.processData( + 'some test data', + ws, + (): Promise => { + return new Promise((resolve) => { + count++; + resolve(ws as WebSocket.WebSocket); + }); + }, + 0, + 5, + ); + equal(sent!.toString(), '\x00some test data'); + strictEqual(count, 0); + }); }); diff --git a/src/yaml_test.ts b/src/yaml_test.ts index 71269e56ff7..ba53293dc04 100644 --- a/src/yaml_test.ts +++ b/src/yaml_test.ts @@ -1,5 +1,5 @@ -import { expect } from 'chai'; - +import { describe, it } from 'node:test'; +import { deepStrictEqual, strictEqual } from 'node:assert'; import { V1Namespace } from './api.js'; import { dumpYaml, loadAllYaml, loadYaml } from './yaml.js'; @@ -8,9 +8,9 @@ describe('yaml', () => { const yaml = 'apiVersion: v1\n' + 'kind: Namespace\n' + 'metadata:\n' + ' name: some-namespace\n'; const ns = loadYaml(yaml); - expect(ns.apiVersion).to.equal('v1'); - expect(ns.kind).to.equal('Namespace'); - expect(ns.metadata!.name).to.equal('some-namespace'); + strictEqual(ns.apiVersion, 'v1'); + strictEqual(ns.kind, 'Namespace'); + strictEqual(ns.metadata!.name, 'some-namespace'); }); it('should load all safely', () => { const yaml = @@ -26,12 +26,12 @@ describe('yaml', () => { ' namespace: some-ns\n'; const objects = loadAllYaml(yaml); - expect(objects.length).to.equal(2); - expect(objects[0].kind).to.equal('Namespace'); - expect(objects[1].kind).to.equal('Pod'); - expect(objects[0].metadata.name).to.equal('some-namespace'); - expect(objects[1].metadata.name).to.equal('some-pod'); - expect(objects[1].metadata.namespace).to.equal('some-ns'); + strictEqual(objects.length, 2); + strictEqual(objects[0].kind, 'Namespace'); + strictEqual(objects[1].kind, 'Pod'); + strictEqual(objects[0].metadata.name, 'some-namespace'); + strictEqual(objects[1].metadata.name, 'some-pod'); + strictEqual(objects[1].metadata.namespace, 'some-ns'); }); it('should round trip successfully', () => { const expected = { @@ -41,6 +41,6 @@ describe('yaml', () => { }; const yamlString = dumpYaml(expected); const actual = loadYaml(yamlString); - expect(actual).to.deep.equal(expected); + deepStrictEqual(actual, expected); }); }); diff --git a/testdata/kubeconfig-proxy-url.yaml b/testdata/kubeconfig-proxy-url.yaml new file mode 100644 index 00000000000..03ea1a2cdfe --- /dev/null +++ b/testdata/kubeconfig-proxy-url.yaml @@ -0,0 +1,86 @@ +apiVersion: v1 +clusters: + - cluster: + certificate-authority-data: Q0FEQVRA + server: http://example1.com + proxy-url: socks5://example:1187 + name: clusterA + - cluster: + certificate-authority-data: Q0FEQVRA + server: https://example2.com + proxy-url: http://example:9443 + name: clusterB + - cluster: + certificate-authority-data: Q0FEQVRA + server: http://example3.com + proxy-url: http://example:8080 + name: clusterC + - cluster: + certificate-authority-data: Q0FEQVRA + server: htto://exampleerror.com + proxy-url: http://example:8080 + name: clusterD + - cluster: + certificate-authority-data: Q0FEQVRA + server: http://exampleerror.com + insecure-skip-tls-verify: true + name: clusterE + - cluster: + certificate-authority-data: Q0FEQVRA + server: http://exampleerror.com + name: clusterF + +contexts: + - context: + cluster: clusterA + user: userA + name: contextA + - context: + cluster: clusterB + user: userB + name: contextB + - context: + cluster: clusterC + user: userC + name: contextC + - context: + cluster: clusterD + user: userD + name: contextD + - context: + cluster: clusterE + user: userE + name: contextE + - context: + cluster: clusterF + user: userF + name: contextF + +current-context: contextA +kind: Config +preferences: {} +users: + - name: userA + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= + - name: userB + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= + - name: userC + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= + - name: userD + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= + - name: userE + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= + - name: userF + user: + client-certificate-data: XVNFUl9DQURBVEE= + client-key-data: XVNFUl9DS0RBVEE= diff --git a/testdata/kubeconfig.yaml b/testdata/kubeconfig.yaml index 7b9e0dfca0d..94ffdc13470 100644 --- a/testdata/kubeconfig.yaml +++ b/testdata/kubeconfig.yaml @@ -1,9 +1,10 @@ apiVersion: v1 clusters: - cluster: - certificate-authority-data: Q0FEQVRB - server: http://example.com - name: cluster1 + certificate-authority-data: Q0FEQVRB + server: http://example.com + proxy-url: socks5://localhost:1181 + name: cluster1 - cluster: certificate-authority-data: Q0FEQVRBMg== server: http://example2.com @@ -12,9 +13,9 @@ clusters: contexts: - context: - cluster: cluster1 + cluster: cluster1 user: user1 - name: context1 + name: context1 - context: cluster: cluster2 namespace: namespace2 @@ -25,7 +26,7 @@ contexts: user: user3 name: passwd -current-context: context2 +current-context: context2 kind: Config preferences: {} users: @@ -40,4 +41,4 @@ users: - name: user3 user: username: foo - password: bar \ No newline at end of file + password: bar diff --git a/tsconfig-with-tests.json b/tsconfig-with-tests.json new file mode 100644 index 00000000000..98928a3edd2 --- /dev/null +++ b/tsconfig-with-tests.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "exclude": [] +} diff --git a/tsconfig.json b/tsconfig.json index 33c6dc5cf1f..20caf8fc248 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,8 +15,9 @@ "forceConsistentCasingInFileNames": true, "importHelpers": true, "skipLibCheck": true, - "esModuleInterop": true - // enable this when it works with tslint, or we switch to prettier + "esModuleInterop": true, + "useDefineForClassFields": false + // enable this in the future // "declarationMap": true }, "exclude": ["node_modules", "src/*_test.ts", "src/test", "dist"], diff --git a/tslint.json b/tslint.json deleted file mode 100644 index bfdc3a013eb..00000000000 --- a/tslint.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "extends": "tslint:recommended", - "defaultSeverity": "error", - "linterOptions": { - "exclude": [ - "src/gen/**/*.ts", - "dist", - "node_modules" - ] - }, - "jsRules": {}, - "rules": { - "quotemark": [true, "single", "avoid-escape", "avoid-template"], - "interface-name": [true, "never-prefix"], - "object-literal-sort-keys": false, - "object-literal-key-quotes": [true, "as-needed"], - "max-classes-per-file": false, - "typedef": [true, "call-signature", "parameter", "member-variable-declaration"] - }, - "rulesDirectory": [] -} diff --git a/typedoc.json b/typedoc.json index 612df6fb240..8e126ec9608 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,3 +1,4 @@ { - "out": "docs" + "out": "docs", + "entryPointStrategy": "expand" }